-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile_supercomputer
37 lines (26 loc) · 1.48 KB
/
Makefile_supercomputer
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Make sure that these modules are imported:
# module load comp-intel/2020.4.304
# module load mpi-hpe/mpt
# module load hdf5/1.8.18_mpt
# module load pkgsrc/2023Q3
#HDF_INSTALL = /usr/local/hdf5
EXTLIB = -L/nasa/hdf5/1.8.18_mpt/lib /nasa/hdf5/1.8.18_mpt/lib/libhdf5_hl.a /nasa/hdf5/1.8.18_mpt/lib/libhdf5.a -L/nasa/pkgsrc/toss3/2021Q2/lib -L/nasa/szip/2.1.1/lib -L/u/tparsota/gsl-2.4/lib
CC = mpicc -cc=icc
CFLAGS = -Wall -qopenmp -O3 -ipo -axCORE-AVX2 -xSSE4.2
LIB = -lz -lm -ldl -lgsl -lgslcblas -lm -lmpi -lsz -Wl,-rpath -Wl,/nasa/hdf5/1.8.18_mpt/lib -lhdf5
DEPS = mcrat.h mclib.h mclib_riken.h mclib_pluto.h mc_cyclosynch.h mcrat_input.h geometry.h mcrat_io.h mcrat_scattering.h mclib_flash.h
OBJ = mcrat.o mclib.o mclib_riken.o mclib_pluto.o mc_cyclosynch.o geometry.o mcrat_io.o mcrat_scattering.o mclib_flash.o
OBJ_MERGE = merge.o mclib.o mclib_riken.o mclib_pluto.o mc_cyclosynch.o geometry.o mcrat_io.o mcrat_scattering.o mclib_flash.o
INCLUDE = -I/nasa/szip/2.1.1/include -I/u/tparsota/gsl-2.4/include -I/nasa/hdf5/1.8.18_mpt/include -I/nasa/pkgsrc/toss3/2021Q2/include
LIBSHDF = $(EXTLIB)
%.o: %.c $(DEPS)
$(CC) $(CFLAGS) -c -o $@ $< $(INCLUDE) $(LIBSHDF) $(LIB)
MCRAT: $(OBJ)
$(CC) $(CFLAGS) -o $@ $^ $(INCLUDE) $(LIBSHDF) $(LIB)
MERGE: $(OBJ_MERGE)
$(CC) $(CFLAGS) -o $@ $^ $(INCLUDE) $(LIBSHDF) $(LIB)
%.o: %.c $(DEPS)
$(CC) $(CFLAGS) -c -o $@ $< $(INCLUDE) $(LIBSHDF) $(LIB)
clean:
rm -f *.o
.SUFFIXES:.o.c