Hi -
I'm trying to compile LAMMPS using Makefile_intel_cpu_mpich and have run in to an error with the linker:
memory.o: In function `LAMMPS_NS::Memory::smalloc(long, char const*)':
/root/lammps-31Mar17/src/Obj_intel_cpu_mpich/../memory.cpp:51: undefined reference to `scalable_aligned_malloc'
memory.o: In function `LAMMPS_NS::Memory::srealloc(void*, long, char const*)':
/root/lammps-31Mar17/src/Obj_intel_cpu_mpich/../memory.cpp:81: undefined reference to `scalable_aligned_realloc'
memory.o: In function `LAMMPS_NS::Memory::sfree(void*)':
/root/lammps-31Mar17/src/Obj_intel_cpu_mpich/../memory.cpp:111: undefined reference to `scalable_aligned_free'
/root/lammps-31Mar17/src/Obj_intel_cpu_mpich/../memory.cpp:111: undefined reference to `scalable_aligned_free'
make[1]: *** [../lmp_intel_cpu_mpich] Error 1
make[1]: Leaving directory `/root/lammps-31Mar17/src/Obj_intel_cpu_mpich'
make: *** [intel_cpu_mpich] Error 2
Some details. This is a cluster environment with modules, so I loaded both the intel and mpich modules before initiating `make intel_cpu_mpich`:
[[email protected]... src]# module list
Currently Loaded Modules:
1) intel/17.0.1.132 2) mpich/3.2
I did make a minor edit to the Makefile. On an earlier run I got hundreds of warning messages about -no-offload being deprecated and that I should use -qno-offload instead, so I changed this in the CCFLAGS entry in the Makefile: