LAMMPS WWW Site - LAMMPS Documentation - LAMMPS Mailing List Archives
Re: [lammps-users] undefined reference to scalable_aligned_malloc, > scalable_aligned_realloc, and scalable_aligned_free?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lammps-users] undefined reference to scalable_aligned_malloc, > scalable_aligned_realloc, and scalable_aligned_free?


From: Stan Moore <smoore@...2881...>
Date: Sat, 29 Jul 2017 20:25:26 -0600

I had to put the path to -ltbbmalloc in the LIB variable, something
like this below. The tbbmalloc lib should be included in your intel
compiler install. You may also need to add "-tbb" to CCFLAGS. On a
Cray machine, I also needed to use add "-dynamic" to LINKFLAGS for
dynamic linking.

OPTFLAGS =      -xHost -O2 -fp-model fast=2 -no-prec-div -qoverride-limits
CCFLAGS =       -g -qopenmp -DLAMMPS_MEMALIGN=64 -qno-offload \
                             -fno-alias -ansi-alias -restrict -tbb $(OPTFLAGS)

LIB =
-L/home/projects/x86-64-knl/intel/compilers/2017/compilers_and_libraries_2017.0.042/linux/tbb/lib/intel64/gcc4.4
-ltbbmalloc

Stan