Warning, /tools/build_options/linux_ia64_cray_archer2 is written in an unsupported language. File is not indexed.
view on githubraw file Latest commit b9c8900e on 2022-08-05 16:35:27 UTC
f397060a05 dfer*0001 #!/bin/bash
b9c8900ec5 Dan(*0002 # To be used on ARCHER2 UK HPC with the default Cray compilers (PrgEnv-cray).
f397060a05 dfer*0003 #
b9c8900ec5 Dan(*0004 # Default modlues as of 7 June 2022:
f397060a05 dfer*0005 # >> module list
b9c8900ec5 Dan(*0006 # Currently Loaded Modules:
f397060a05 dfer*0007 # 1) cce/11.0.4 4) libfabric/1.11.0.4.71 7) xpmem/2.2.40-7.0.1.0_2.7__g1d7a24d.shasta 10) PrgEnv-cray/8.0.0 13) load-epcc-module
0008 # 2) craype/2.7.6 5) craype-network-ofi 8) cray-mpich/8.1.4 11) bolt/0.7
0009 # 3) craype-x86-rome 6) perftools-base/21.02.0 9) cray-libsci/21.04.1.1 12) epcc-setup-env
0010
0011 CC='cc'
0012 FC='ftn'
0013 F90C='ftn'
0014
0015 DEFINES='-DWORDLENGTH=4 -D_BYTESWAPIO -DHAVE_LAPACK -DNML_TERMINATOR'
0016 CPP='cpp -traditional -P'
0017 EXTENDED_SRC_FLAG='-Mextend'
b9c8900ec5 Dan(*0018 GET_FC_VERSION="-V"
f397060a05 dfer*0019 CHECK_FOR_LAPACK=t
0020 FC_CHECK=f
b9c8900ec5 Dan(*0021 INCLUDES='-I${NETCDF_DIR}/include -I${CRAY_MPICH_DIR}/include'
0022 LIBS='-L${NETCDF_DIR}/lib -L${CRAY_MPICH_DIR}/include/lib'
f397060a05 dfer*0023
0024 NOOPTFLAGS='-O0'
0025 NOOPTFILES=''
0026
0027 if test "x$IEEE" = x ; then #- with optimisation:
b9c8900ec5 Dan(*0028 # FOPTIM='-O2 -hfp3 -Oipa5' for less agressive optimization
f397060a05 dfer*0029 FOPTIM='-O3 -hfp3 -Oipa5'
0030 else
0031 if test "x$DEVEL" = x ; then #- no optimisation + IEEE :
b9c8900ec5 Dan(*0032 FOPTIM='-O0 -hfp0'
f397060a05 dfer*0033 else #- development/check options:
b9c8900ec5 Dan(*0034 FOPTIM='-O0 -hfp0'
0035 FOPTIM="$FOPTIM -g -Rbc -rm -hmsgs -hnegmsgs"
f397060a05 dfer*0036 fi
0037 fi
b9c8900ec5 Dan(*0038
0039 FFLAGS="$FFLAGS -em -ef -dynamic -h pic"
0040
0041 CFLAGS="$CFLAGS -h pic -dynamic"