Warning, /tools/build_options/unsupported/linux_ia32_ifort.aces 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
cb03c942c2 Jean*0001 #!/bin/bash
a2b7e9952a Jean*0002 #
cb03c942c2 Jean*0003 # test Multi-Treaded with OpenMP:
0004 # to get 1 node with 2 cpu : qsub -I -l nodes=1:ppn=2
0005 # then on computer node:
0006 # needs to load intel compiler version 9:
0007 # > module load ifc/9.0.021 icc/9.0.021 intel/9.0
0008 # set for 2 threads, and generally, needs to increase the stack-size:
0009 # * sh,bash:
0010 # > export OMP_NUM_THREADS=2
0011 # > export KMP_STACKSIZE=400m
0012 # * csh,tcsh:
0013 # > setenv OMP_NUM_THREADS 2
0014 # > setenv KMP_STACKSIZE 400m
0015 #-------
0016
0017 FC='ifort'
0018 CC='icc'
0019 LINK='ifort'
a2b7e9952a Jean*0020
cb03c942c2 Jean*0021 INCLUDES='-I/usr/local/pkg/ifc/ifc-9.0.021/include'
0022 LIBS='-L/usr/local/pkg/ifc/ifc-9.0.021/lib'
0023
0024 DEFINES='-DWORDLENGTH=4'
0025 CPP='cpp -traditional -P'
0026 EXTENDED_SRC_FLAG='-132'
a5566b88fb Jean*0027 GET_FC_VERSION="--version"
cb03c942c2 Jean*0028 OMPFLAG='-openmp'
0029
0030 NOOPTFLAGS='-O0'
0031 NOOPTFILES='mds_byteswapr8.F mds_byteswapr4.F mds_byteswapi4.F'
0032
0033 if test "x$IEEE" = x ; then
0034 FOPTIM='-O3 -align'
a2b7e9952a Jean*0035 FFLAGS="$FFLAGS -w95 -W0 -WB -convert big_endian -assume byterecl"
cb03c942c2 Jean*0036 else
0037 FOPTIM='-O0 -noalign'
a2b7e9952a Jean*0038 FFLAGS="$FFLAGS -w95 -W0 -WB -pc64 -xW -convert big_endian -assume byterecl"
cb03c942c2 Jean*0039 fi
a2b7e9952a Jean*0040 #- might want to use '-r8' for fizhi pkg:
0041 #FFLAGS="$FFLAGS -r8"
cb03c942c2 Jean*0042
0043 NOOPTFILES=$NOOPTFILES' mitcplr_char2real.F mitcplr_real2char.F'
0044 NOOPTFILES=$NOOPTFILES' mitcplr_char2int.F mitcplr_int2char.F mds_byteswap.F'