- Timestamp:
- 09/21/18 00:59:11 (6 years ago)
- Location:
- codes/icosagcm/devel
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
codes/icosagcm/devel/arch/arch-X64_IRENE.fcm
r693 r738 7 7 %FPP_DEF KEY_NONE CPP_NETCDF4 8 8 %BASE_FFLAGS -fPIC -i4 -r8 -auto -align all -I${MKLROOT}/include 9 %PROD_FFLAGS -g -traceback -O3 -xCORE-AVX512 9 %FAST_FFLAGS -g -traceback -O3 -xHost 10 %PROD_FFLAGS -g -traceback -O3 -xAVX 10 11 %DEV_FFLAGS -g -O1 -traceback 11 12 %DEBUG_FFLAGS -g -traceback -check bounds -fp-model strict -
codes/icosagcm/devel/bld.cfg
r615 r738 49 49 bld::tool::fppflags %FPP_FLAGS 50 50 51 # arch.opt is there to set per-file specific compiling options ; example : 52 #bld::tool::fflags::phys::readaerosol %BASE_FFLAGS %PROD_FFLAGS %INCDIR -C hopt -pi auto 53 inc arch.opt 54 51 55 # Pre-process code before analysing dependencies 52 56 bld::pp false -
codes/icosagcm/devel/make_icosa
r730 r738 96 96 mkdir .void_dir 97 97 98 function link_if_exists() 99 { 100 suffix=$1 101 if test -f $arch_path/arch-${arch}.${suffix} 102 then 103 ln -s $arch_path/arch-${arch}.${suffix} arch.${suffix} 104 elif test -f $arch_default_path/arch-${arch}.${suffix} 105 then 106 ln -s $arch_default_path/arch-${arch}.${suffix} arch.${suffix} 107 fi 108 109 } 110 98 111 if [[ "$arch_defined" == "TRUE" ]] 99 112 then … … 101 114 rm -f arch.fcm 102 115 rm -f arch.env 103 104 if test -f $arch_path/arch-${arch}.path 105 then 106 ln -s $arch_path/arch-${arch}.path arch.path 107 elif test -f $arch_default_path/arch-${arch}.path 108 then 109 ln -s $arch_default_path/arch-${arch}.path arch.path 110 fi 111 112 if test -f $arch_path/arch-${arch}.fcm 113 then 114 ln -s $arch_path/arch-${arch}.fcm arch.fcm 115 elif test -f $arch_default_path/arch-${arch}.fcm 116 then 117 ln -s $arch_default_path/arch-${arch}.fcm arch.fcm 118 fi 119 120 if test -f $arch_path/arch-${arch}.env 121 then 122 ln -s $arch_path/arch-${arch}.env arch.env 123 elif test -f $arch_default_path/arch-${arch}.env 124 then 125 ln -s $arch_default_path/arch-${arch}.env arch.env 126 else 127 ln -s .void_file arch.env 128 fi 116 117 for suffix in env path fcm opt ; do link_if_exists $suffix ; done 118 129 119 source arch.env 130 120 source arch.path 121 131 122 else 132 123 echo "Veuillez definir une architecture cible" … … 135 126 136 127 LD_FLAGS="%BASE_LD" 137 138 if [[ "$compil_mode" == "prod" ]] 139 then 140 COMPIL_FFLAGS="%PROD_FFLAGS" 141 elif [[ "$compil_mode" == "dev" ]] 142 then 143 COMPIL_FFLAGS="%DEV_FFLAGS" 144 elif [[ "$compil_mode" == "debug" ]] 145 then 146 COMPIL_FFLAGS="%DEBUG_FFLAGS" 147 fi 128 COMPIL_FFLAGS="" 148 129 149 130 if [[ "$parallel" == "mpi" ]] … … 210 191 fi 211 192 193 if [[ "$compil_mode" == "prod" ]] 194 then 195 HOPT_FFLAGS="%FAST_FFLAGS $COMPIL_FFLAGS" 196 COMPIL_FFLAGS="%PROD_FFLAGS $COMPIL_FFLAGS" 197 elif [[ "$compil_mode" == "dev" ]] 198 then 199 COMPIL_FFLAGS="%DEV_FFLAGS $COMPIL_FFLAGS" 200 HOPT_FFLAGS=$COMPIL_FFLAGS 201 elif [[ "$compil_mode" == "debug" ]] 202 then 203 COMPIL_FFLAGS="%DEBUG_FFLAGS $COMPIL_FFLAGS" 204 HOPT_FFLAGS=$COMPIL_FFLAGS 205 fi 206 212 207 rm -f config.fcm 213 208 214 209 echo "%COMPIL_FFLAGS $COMPIL_FFLAGS" >> config.fcm 210 echo "%HOPT_FFLAGS $HOPT_FFLAGS" >> config.fcm 215 211 echo "%LD_FLAGS $LD_FLAGS" >> config.fcm 216 212 echo "%CPP_KEY $CPP_KEY" >> config.fcm
Note: See TracChangeset
for help on using the changeset viewer.