Changeset 738


Ignore:
Timestamp:
09/21/18 00:59:11 (6 years ago)
Author:
dubos
Message:

devel/IRENE : use AVX512 in dynamics and AVX elsewhere ; fixes mass convervation issue

Location:
codes/icosagcm/devel
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • codes/icosagcm/devel/arch/arch-X64_IRENE.fcm

    r693 r738  
    77%FPP_DEF             KEY_NONE CPP_NETCDF4 
    88%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 
    1011%DEV_FFLAGS          -g -O1 -traceback 
    1112%DEBUG_FFLAGS        -g -traceback -check bounds -fp-model strict 
  • codes/icosagcm/devel/bld.cfg

    r615 r738  
    4949bld::tool::fppflags  %FPP_FLAGS 
    5050 
     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 
     53inc arch.opt 
     54 
    5155# Pre-process code before analysing dependencies 
    5256bld::pp              false 
  • codes/icosagcm/devel/make_icosa

    r730 r738  
    9696mkdir .void_dir 
    9797 
     98function 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 
    98111if [[ "$arch_defined" == "TRUE" ]] 
    99112then 
     
    101114  rm -f arch.fcm 
    102115  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 
    129119  source arch.env 
    130120  source arch.path 
     121 
    131122else 
    132123  echo "Veuillez definir une architecture cible" 
     
    135126 
    136127LD_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 
     128COMPIL_FFLAGS="" 
    148129 
    149130if [[ "$parallel" == "mpi" ]] 
     
    210191fi 
    211192 
     193if [[ "$compil_mode" == "prod" ]] 
     194then 
     195  HOPT_FFLAGS="%FAST_FFLAGS $COMPIL_FFLAGS" 
     196  COMPIL_FFLAGS="%PROD_FFLAGS $COMPIL_FFLAGS" 
     197elif [[ "$compil_mode" == "dev" ]] 
     198then 
     199  COMPIL_FFLAGS="%DEV_FFLAGS $COMPIL_FFLAGS" 
     200  HOPT_FFLAGS=$COMPIL_FFLAGS 
     201elif [[ "$compil_mode" == "debug" ]] 
     202then 
     203  COMPIL_FFLAGS="%DEBUG_FFLAGS $COMPIL_FFLAGS" 
     204  HOPT_FFLAGS=$COMPIL_FFLAGS 
     205fi 
     206 
    212207rm -f config.fcm 
    213208 
    214209echo "%COMPIL_FFLAGS $COMPIL_FFLAGS" >> config.fcm 
     210echo "%HOPT_FFLAGS $HOPT_FFLAGS" >> config.fcm 
    215211echo "%LD_FLAGS $LD_FLAGS" >> config.fcm 
    216212echo "%CPP_KEY $CPP_KEY" >> config.fcm 
Note: See TracChangeset for help on using the changeset viewer.