-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile-archer2
executable file
·55 lines (39 loc) · 869 Bytes
/
Makefile-archer2
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
MF= Makefile-archer2
# You will need to load some modules:
#
# module use /work/z19/shared/sfarr/modulefiles
# module load adios/2.8.3
#
# module load cray-hdf5-parallel
# module load cray-netcdf-hdf5parallel
#
FC= ftn
FFLAGS=-O3 $(shell adios2-config --fortran-flags)
LFLAGS=$(shell adios2-config --fortran-libs)
EXE= benchio
SRC= \
benchio.f90 \
mpiio.f90 \
serial.f90 \
netcdf.f90 \
hdf5.f90 \
adios.f90 \
benchutil.f90
#
# No need to edit below this line
#
.SUFFIXES:
.SUFFIXES: .f90 .o
OBJ= $(SRC:.f90=.o)
.f90.o:
$(FC) $(FFLAGS) -c $<
all: $(EXE)
$(EXE): $(OBJ)
$(FC) $(FFLAGS) -o $@ $(OBJ) $(LFLAGS)
$(OBJ): $(MF)
benchio.o: serial.o mpiio.o benchutil.o netcdf.o hdf5.o adios.o
clean:
rm -f $(OBJ) $(EXE) *.mod core
tar:
tar --exclude-vcs -cvf $(EXE).tar $(MF) $(SRC) benchio.pbs \
defstriped/README striped/README unstriped/README