Commit 4f82a307 authored by lheinz's avatar lheinz
Browse files

changed gitignore

parent f1142da6
#Makefile for g_permute; edit the variables according to your needs
SHELL=/bin/sh
# set LD_LIBRARY_PATH
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/lheinz/Install/g_permute_dev/g_permute-1.1/lib/:/cm/local/apps/gcc/6.1.0/lib64/ # the last path is needed for libstdc++
# load MPI: module load intel-mpi/64/5.1.2/150
# this is where executable and libraries will go - we recommend to
# leave PREFIX unchanged
# in any case this must match the location where liblap was installed to
PREFIX = ../../g_permute-1.1
EXEC_PREFIX = $(PREFIX)
BINDIR = $(EXEC_PREFIX)/bin
# pointer to your Gromacs installation - adjust only if you did *NOT* use the installation script instGMX331.sh supplied with the distribution
GMXDIR = /usr/local/gromacs/2018/2018.2-impi2017-fftw337-gcc640-cuda91/
#/usr/local/gromacs/2019/2019.3-impi2017-fftw337-gcc740-cuda10/
#/usr/local/gromacs/2018/2018.2-impi2017-fftw337-gcc640-cuda91/
#/usr/local/gromacs/5.1/514-impi2017-fftw332-gcc540-cuda80
#/usr/local/gromacs/3.3/334-impi403-fftw331-gcc470
GMXLIB = $(GMXDIR)/lib64
GMXINC = $(GMXDIR)/include
# we have to link fftw, even if we don't use it
FFTWLIB = /home/ckutzne/fftw/337-gcc485-sse2-avx-avx2/lib64
# Source of the installation. No need to change this
SRCDIR = ..
# CC = cc # switch to C++
CXX = mpicxx
LDFLAGS = -L/usr/lib -L/usr/lib64 -L/usr/local/lib -L$(GMXLIB) -L$(FFTWLIB) -L/cm/local/apps/gcc/6.1.0/lib64/ -lm -lgromacs -lpthread -lstdc++ -lfftw3f
#-L/cm/local/apps/gcc/6.1.0/lib64/
INCFLAGS= -I$(SRCDIR)/include -I../include -I$(GMXINC)
#for compilation on 64bit systems uncomment the following line
CFLAGS = -O3 -g -fomit-frame-pointer -finline-functions -Wall -Wno-unused -funroll-all-loops -ggdb -std=c++11 -fopenmp
#for compilation on 32bit systems uncomment the following line
#CFLAGS = -O0 -g -fomit-frame-pointer -finline-functions -Wall -Wno-unused -malign-double -funroll-all-loops -ggdb
LDSOFLAGS = -Wl
OBJS = g_permute.o ../liblap/lap.o ../liblap/memory.o
EXE = g_permute
install: $(EXE)
mkdir -p $(BINDIR)
cp $(EXE) $(BINDIR)
../liblap/lap.o: ../liblap/lap.c Makefile
$(CXX) $(INCFLAGS) $(CFLAGS) -c $< -o $@
../liblap/memory.o: ../liblap/memory.c Makefile
$(CXX) $(INCFLAGS) $(CFLAGS) -c $< -o $@
g_permute.o: g_permute.cpp Makefile
$(CXX) $(INCFLAGS) $(CFLAGS) -c $< -o $@
all: $(EXE)
$(EXE): $(OBJS) Makefile
$(CXX) -o $(EXE) $(OBJS) $(LDFLAGS) $(CFLAGS)
.PHONY : clean
clean:
rm -f $(OBJS) $(EXE)
#Makefile for g_permute; edit the variables according to your needs
SHELL=/bin/sh
# set LD_LIBRARY_PATH
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/lheinz/Install/g_permute_dev/g_permute-1.1/lib/:/cm/local/apps/gcc/6.1.0/lib64/ # the last path is needed for libstdc++
# load MPI: module load intel-mpi/64/5.1.2/150
# this is where executable and libraries will go - we recommend to
# leave PREFIX unchanged
# in any case this must match the location where liblap was installed to
PREFIX = ../../g_permute-1.1
EXEC_PREFIX = $(PREFIX)
BINDIR = $(EXEC_PREFIX)/bin
# pointer to your Gromacs installation - adjust only if you did *NOT* use the installation script instGMX331.sh supplied with the distribution
GMXDIR = /usr/local/gromacs/2018/2018.2-impi2017-fftw337-gcc640-cuda91/
#/usr/local/gromacs/2019/2019.3-impi2017-fftw337-gcc740-cuda10/
#/usr/local/gromacs/2018/2018.2-impi2017-fftw337-gcc640-cuda91/
#/usr/local/gromacs/5.1/514-impi2017-fftw332-gcc540-cuda80
#/usr/local/gromacs/3.3/334-impi403-fftw331-gcc470
GMXLIB = $(GMXDIR)/lib64
GMXINC = $(GMXDIR)/include
# we have to link fftw, even if we don't use it
FFTWLIB = /home/ckutzne/fftw/337-gcc485-sse2-avx-avx2/lib64
# Source of the installation. No need to change this
SRCDIR = ..
# CC = cc # switch to C++
CXX = mpicxx
LDFLAGS = -L/usr/lib -L/usr/lib64 -L/usr/local/lib -L$(GMXLIB) -L$(FFTWLIB) -L/cm/local/apps/gcc/6.1.0/lib64/ -lm -lgromacs -lpthread -lstdc++ -lfftw3f
#-L/cm/local/apps/gcc/6.1.0/lib64/
INCFLAGS= -I$(SRCDIR)/include -I../include -I$(GMXINC)
#for compilation on 64bit systems uncomment the following line
CFLAGS = -O3 -g -fomit-frame-pointer -finline-functions -Wall -Wno-unused -funroll-all-loops -ggdb -std=c++11 -fopenmp
#for compilation on 32bit systems uncomment the following line
#CFLAGS = -O0 -g -fomit-frame-pointer -finline-functions -Wall -Wno-unused -malign-double -funroll-all-loops -ggdb
LDSOFLAGS = -Wl
OBJS = g_permute.o ../liblap/lap.o ../liblap/memory.o
EXE = g_permute
install: $(EXE)
mkdir -p $(BINDIR)
cp $(EXE) $(BINDIR)
../liblap/lap.o: ../liblap/lap.c Makefile
$(CXX) $(INCFLAGS) $(CFLAGS) -c $< -o $@
../liblap/memory.o: ../liblap/memory.c Makefile
$(CXX) $(INCFLAGS) $(CFLAGS) -c $< -o $@
g_permute.o: g_permute_noOMP.cpp Makefile
$(CXX) $(INCFLAGS) $(CFLAGS) -c $< -o $@
all: $(EXE)
$(EXE): $(OBJS) Makefile
$(CXX) -o $(EXE) $(OBJS) $(LDFLAGS) $(CFLAGS)
.PHONY : clean
clean:
rm -f $(OBJS) $(EXE)
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment