[lammps-users] Makefile for TACC lonestar

Hi,

Does anyone here have a makefile for TACC lonestar? If you do, I'll be
most grateful if you can you please send me your makefile. There are
some active users of lonestar on this list and I can sure use the
help. I'm having trouble finding the FFTW2 library in lonestar.

Many many thanks.

Regards,
Zhun-Yong

I found this lying around in my Lonestar account. Probably a couple of years old, but…

lslogin2% more Makefile.Lonestar.tacc

Lonestar = Rocks 4.3 CentOS 4.5, Intel C++ 10.1, MVAPICH

SHELL = /bin/sh
#.IGNORE:

System-specific settings

CC = mpiCC
CCFLAGS = -O2 -DFFT_FFTW -DLAMMPS_GZIP -I${TACC_FFTW2_INC}
DEPFLAGS = -M
LINK = mpiCC -L${TACC_FFTW2_LIB} -lfftw
LINKFLAGS = -O2
USRLIB =
SYSLIB =
ARCHIVE = ar
ARFLAGS = -rc
SIZE = size

Link target

(EXE): (OBJ)
(LINK) (LINKFLAGS) (OBJ) (USRLIB) (SYSLIB) -o (EXE)
(SIZE) (EXE)

Library target

lib: (OBJ) (ARCHIVE) (ARFLAGS) (EXE) $(OBJ)

Compilation rules

.o:.cpp
(CC) (CCFLAGS) -c $<

.d:.cpp
(CC) (CCFLAGS) (DEPFLAGS) < > [email protected]

Individual dependencies

DEPENDS = (OBJ:.o=.d) include (DEPENDS)

Remember, on TG machines (and a number of others), yu have to load the appropriate module(s) to enable certain libraries:

lslogin2% module list
Currently Loaded Modules:

  1. Linux 2) intel/10.1 3) binutils/2.17 4) mvapich/1.0.1 5) cluster 6) TACC
    lslogin2% module load fftw2
    lslogin2% module list
    Currently Loaded Modules:
  2. Linux 2) intel/10.1 3) binutils/2.17 4) mvapich/1.0.1 5) cluster 6) TACC 7) fftw2/2.1.5

Hi Jeff,

That solved the problem. I didn't know that I had to load the FFTW2
module because I'm new to TACC. Thank you very much!

Zhun-Yong

There is a src/MAKE/Makefile.tacc in the distribution.

Steve