# # MAKEFILE FOR GNU/Linux SPIDER using FFTW3 on 2 or more processors on Opteron 64-- # # Note: To create executable: make -f Makefile_linux_mpfftw3_opt64 # # Using: Portland Group F90 compiler # Non-native mode byte ordering on: AMD Opteron GNU/Linux 64 bit OS # FFTW must be configured with: --enable-float --enable-type-prefix # # Note: You may ignore any undefined QFFLAGS, QLFLAGS & SUFFIX # SHELL = /bin/sh PGM = spider WHICH = mpfftw_opt64 # Location of Fortran compiler for PGI7.1 COMP = /usr/pgi/linux86-64/7.1/bin/pgf95 EXE = $(PGM)_linux_$(WHICH)$(SUFFIX) # -O2 : Invokes level 2 optimization (-O3 causes some run time problems with PGI compiler on SPIDER code) # -mp : Invokes multi processor support # -tp p6 : Targets 32 bit Pentium Pro/II/III with 32 bit memory addresses, supports x87 FP # -tp p7 : Targets 32 or 64 bit Pentium4 with 32 bit memory addresses, supports SSE1 & SSE2 FP # -tp p7-64 : Targets 64 bit Pentium4 with 64 bit memory addresses, supports SSE1, SSE2 & SSE3 FP # -tp x64 : Targets unified 64 bit AMD & Intel binaries (samoa) # -tp k8-64e : Targets AMD Opteron Revision E or AMD Turion (cluster) # -Mipa=fast : Invokes interprocedural analysis # -fast : Selects an appropriate set of optimization flags usually including -O2 -Munroll -Mnoframe # -fastsse : Selects an appropriate set of flags including SSE support usually including -O2 -Munroll -Mnoframe -Mvect=sse -Mcache_align # -pc 64 : Sets precision of FPU operations # -mcmodel=medium : Allows use of >2GB data area # cp /usr/pgi/linux86-64/7.1-2/libso/libpgnuma.a /usr/lib64/libnuma.a FFLAGS = -O2 -Mpreprocess -tp k8-64 -fastsse -mcmodel=medium -mp -Kieee -Minfo -byteswapio -Dosf_ieee -DSP_MP -DSP_LIBFFTW3 -c # Link with multi processor support LF = -tp k8-64 -fastsse -mp -mcmodel=medium $(QLFLAGS) # FFTW library location for pgi7.1 static FFTWLIBDIR = ../fftw/fftw3-opt64/lib LIB = $(EXE).a AFLAGS = r # Link with FFTW static libraries with threads and with math library LINKLIBS = -Bstatic -L$(FFTWLIBDIR) -lfftw3f -lfftw3f_threads -mp -lm .PRECIOUS : ../bin/$(EXE) $(LIB) include Makefile.inc include Makebody.inc