[gmx-developers] cray-hugepages and compilation error

Roland Schulz roland at utk.edu
Fri Dec 18 02:03:20 CET 2015


Hi,

as a work-around, you run cmake with "-DCMAKE_SYSTEM_NAME=Linux" and it
should work.
I created http://redmine.gromacs.org/issues/1881.

Roland

On Wed, Dec 16, 2015 at 8:21 AM, Stefan Richter <stefan.richter at h-its.org>
wrote:

> I try to compile gromacs on a cray-XC-40 system using the intel compiler
> and the craype-hugepages loaded.
> The cmake command is as follows:
> module load PrgEnv-intel/5.2.56
> module load craype-hugepages32M
>
> export CC=cc
> export CXX=CC
> cmake -DGMX_PREFER_STATIC_LIBS=ON -DGMX_PREFER_STATIC_LIBS=ON
> -DCMAKE_C_COMPILER=cc -DCMAKE_CXX_COMPILER=CC -DGMX_SIMD=AVX2_256
> -DGMX_BUILD_OWN_FFTW=ON  -DGMX_GPU=OFF
> -DCMAKE_INSTALL_PREFIX=~/app/gromacs/5.0.7  -DBUILD_SHARED_LIBS=off
>  -DCMAKE_SKIP_RPATH=YES  -DGMX_MPI=ON -DGMX_OPENMP=ON
> -DGMX_BUILD_OWN_FFTW_URL=~/app/gromacs/dist/fftw-gromacs-5.0.7.tar.gz ..
> make
> make install
>
> However, i do get an error related to the hugepages:
>
>
> gromacs-5.0.7/src/gromacs/gmxlib/copyrite.cpp(743): error: identifier
> "libhugetlbfs" is undefined
>                BUILD_CPU_FAMILY, BUILD_CPU_MODEL, BUILD_CPU_STEPPING);
>                ^
>
> gromacs-5.0.7/src/gromacs/gmxlib/copyrite.cpp(743): error: identifier
> "mom07" is undefined
>                BUILD_CPU_FAMILY, BUILD_CPU_MODEL, BUILD_CPU_STEPPING);
>                ^
>
> gromacs-5.0.7/src/gromacs/gmxlib/copyrite.cpp(743): error: expected a ")"
>                BUILD_CPU_FAMILY, BUILD_CPU_MODEL, BUILD_CPU_STEPPING);
>                ^
>
> gromacs-5.0.7/src/gromacs/gmxlib/copyrite.cpp(743): warning #267: the
> format string requires additional arguments
>                BUILD_CPU_FAMILY, BUILD_CPU_MODEL, BUILD_CPU_STEPPING);
>                ^
>
> compilation aborted for
> /univ_1/ws1/ws/xhiricht-myspace-0/app/gromacs/src/gromacs-5.0.7/src/gromacs/gmxlib/copyrite.cpp
> (code 2)
> make[2]: *** [src/gromacs/CMakeFiles/libgromacs.dir/gmxlib/copyrite.cpp.o]
> Error 2
>
> If i do not load the hugepages module, i do not get this error. However,
> from the computing center it is recommended to load these, and they will
> become default next year.
>
> Any ideas where this error is coming from?
>
> Kind regards.
>
> --
> Dr. Stefan Richter
> Software and IT Specialist
> Molecular and Cellular Modeling Group (MCM)
> HITS gGmbH
> Schloss-Wolfsbrunnenweg 35
> 69118 Heidelberg
> Germany
>
> phone: +49 - 6221 - 533 279
> fax: +49 6221 533298
> email: Stefan.Richter at h-its.org
> http://www.h-its.org
> _________________________________________________
> Amtsgericht Mannheim / HRB 337446
> Managing Director:
> Prof. Dr.-Ing. Andreas Reuter
>
> --
> Gromacs Developers mailing list
>
> * Please search the archive at
> http://www.gromacs.org/Support/Mailing_Lists/GMX-developers_List before
> posting!
>
> * Can't post? Read http://www.gromacs.org/Support/Mailing_Lists
>
> * For (un)subscribe requests visit
> https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-developers
> or send a mail to gmx-developers-request at gromacs.org.
>



-- 
ORNL/UT Center for Molecular Biophysics cmb.ornl.gov
865-241-1537, ORNL PO BOX 2008 MS6309
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://maillist.sys.kth.se/pipermail/gromacs.org_gmx-developers/attachments/20151218/f86a0a0e/attachment.html>


More information about the gromacs.org_gmx-developers mailing list