Warning, /tools/build_options/linux_amd64_ifort_discover is written in an unsupported language. File is not indexed.
view on githubraw file Latest commit add29e06 on 2018-01-31 20:35:05 UTC
0bed970c37 Dimi*0001 #!/bin/bash
0002 #
0003 # Used for serial and mpi compilation on discover at NCCS with:
0004 # module load comp/intel-13.1.2.183 other/mpi/mvapich2-1.8.1/intel-13.1.2.183
0005
0006 if test "x$MPI" = xtrue ; then
0007 FC=mpif90
0008 CC=mpicc
0009 else
0010 FC=ifort
0011 CC=icc
0012 fi
0013
0014 DEFINES='-DWORDLENGTH=4'
0015 CPP='/lib/cpp -traditional -P'
0016 EXTENDED_SRC_FLAG='-132'
0017 OMPFLAG='-openmp'
0018 CFLAGS='-fPIC'
0019 LDADD='-shared-intel'
0020
0021 LIBS='-L/usr/local/other/SLES11.1/mvapich2/1.8.1/intel-13.1.2.183/lib'
0022 INCLUDES='-I/usr/local/other/SLES11.1/mvapich2/1.8.1/intel-13.1.2.183/include'
0023 INCLUDEDIRS='/usr/local/other/SLES11.1/mvapich2/1.8.1/intel-13.1.2.183/include'
0024 #- used for parallel (MPI) DIVA
0025 MPIINCLUDEDIR='/usr/local/other/SLES11.1/mvapich2/1.8.1/intel-13.1.2.183/include'
0026 #MPI_HEADER_FILES='mpif.h mpiof.h mpif_parameters.h'
0027
0028 NOOPTFLAGS='-O0 -fPIC'
0029
0030 if test "x$IEEE" = x ; then
0031 # No need for IEEE-754
0032 FFLAGS="$FFLAGS -fPIC -W0 -WB -convert big_endian -assume byterecl -align"
0033 FOPTIM='-O2 -ip -fp-model precise -axSSSE4.2,SSSE3 -traceback -ftz'
0034 NOOPTFILES='seaice_growth.F calc_oce_mxlayer.F fizhi_lsm.F fizhi_clockstuff.F'
0035 else
0036 # Try to follow IEEE-754
0037 FFLAGS="$FFLAGS -fPIC -w95 -W0 -WB -convert big_endian -assume byterecl -noalign"
0038 FOPTIM='-O0'
0039 fi
0040 #- might want to use '-r8' for fizhi pkg:
0041 #FFLAGS="$FFLAGS -r8"
0042
0043 #- For really big executable (> 2 GB), uncomment following 2 lines
0044 #FFLAGS="$FFLAGS -mcmodel=medium -shared-intel"
0045 #CFLAGS="$CFLAGS -mcmodel=medium -shared-intel"