-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy patharch-linux_spack.fcm
More file actions
26 lines (23 loc) · 1.05 KB
/
arch-linux_spack.fcm
File metadata and controls
26 lines (23 loc) · 1.05 KB
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
# This fcm file is intended to be used with the psyclone-spack nemo-build-environment recipe
# which will populate all environment variables but PSYCLONE_HOME and FCFLAGS, which should
# be populated manually for the desired target. For example, using:
# $ spack load nemo-build-environment%nvhpc
# $ export PSYCLONE_HOME=${PWD}/.venv
# $ export FCFLAGS="-i4 -Mr8 -O3 -Minline -Mcray=pointer -Mpre -mp"
%PSYCLONE_HOME ${PSYCLONE_HOME}
%NCDF_INC -I${NCDF_F_HOME}/include -I${NCDF_C_HOME}/include -I${HDF5_HOME}/include
%NCDF_LIB -L${NCDF_F_HOME}/lib -lnetcdff -L${NCDF_C_HOME}/lib -lnetcdf
%CPP cpp -Dkey_nosignedzero -I${MPI_HOME}/include
%FC ${MPIF90} -c
%FCFLAGS ${FCFLAGS}
%FFLAGS %FCFLAGS
%LD ${MPIF90}
%LDFLAGS ${FCFLAGS}
%FPPFLAGS -P -traditional
%AR ar
%ARFLAGS rs
%MK make
%USER_INC %NCDF_INC
%USER_LIB %NCDF_LIB
%CC ${CC}
%CFLAGS -O2