- Timestamp:
- Oct 4, 2019, 4:01:59 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOL/script_install/install_lmdz.sh
r3560 r3573 89 89 ## parallel can take the values none/mpi/omp/mpi_omp 90 90 parallel=mpi_omp 91 idris_acct=lmd 91 92 parallel=none 92 93 OPT_GPROF="" … … 218 219 module load intel/2017.2 ; 219 220 arch=X64_ADA ;; 221 222 jean-) compiler="mpiifort" ; 223 par_comp="mpiifort" ; 224 o_ins_make="-t jeanzay" ; 225 make=gmake ; 226 module load intel-compilers/19.0.4 ; 227 module load intel-mpi/19.0.4 ; 228 module load hdf5/1.10.5/intel-19.0.4-mpi ; 229 module load netcdf/4.7.0/intel-19.0.4-mpi ; 230 module load netcdf-fortran/4.4.5/intel-19.0.4-mpi ; 231 module load subversion/1.9.7/gcc-4.8.5 ; 232 module load intel-mkl/19.0.4 ; 233 export NETCDF_LIBDIR=./ 234 export NETCDFFORTRAN_INCDIR=./ 235 export NETCDFFORTRAN_LIBDIR=./ 236 arch=X64_JEANZAY ;; 220 237 221 238 cicla|camel) compiler="gfortran" ; … … 412 429 compile_with_fcm=1 413 430 431 elif [ $compiler = mpiifort ] ; then 432 compile_with_fcm=1 433 414 434 else 415 435 echo unexpected compiler $compiler ; exit … … 433 453 if [ $real = r8 ] ; then OPTPREC="$OPTPREC -real-size 64 -DNC_DOUBLE" ; fi 434 454 OPTIM="-O2 -fp-model strict -ip -axAVX,SSE4.2 -align all " 455 OPTIMGCM="$OPTIM $OPTPREC" 456 fi 457 if [ ${hostname:0:5} = jean- ] ; then 458 netcdf=0 # no need to recompile netcdf, alreday available 459 check_linux=0 460 pclinux=0 461 ioipsl=0 # no need to recompile ioipsl, already available 462 #netcdf="/smplocal/pub/NetCDF/4.1.3" 463 compiler="mpiifort" 464 fmod='module ' 465 if [ $real = r8 ] ; then OPTPREC="$OPTPREC -i4 -r8 -DNC_DOUBLE" ; fi 466 OPTIM="-auto -align all -O2 -fp-model strict -xHost " 435 467 OPTIMGCM="$OPTIM $OPTPREC" 436 468 fi … … 598 630 if [ "`grep ada AA_make.gdef`" = "" ] ; then # Bidouille pour compiler sur ada des vieux modipsl.tar 599 631 \cp -f ~rdzt401/bin/AA_make.gdef . 632 fi 633 if [ "`grep jeanzay AA_make.gdef`" = "" ] ; then # Bidouille pour compiler sur ada des vieux modipsl.tar 634 echo 'Warning jean-zay not in AA_make.gdef' 635 echo 'Think about updating' 636 exit 1 600 637 fi 601 638 … … 665 702 ln -s ~rpsl035/IOIPSL_PLUS/modipsl_Tagv2_2_3/bin/* bin/ 666 703 ln -s ~rpsl035/IOIPSL_PLUS/modipsl_Tagv2_2_3/lib/* lib/ 667 668 fi # of if [ ${hostname:0:5} = ada33 ] 704 elif [ ${hostname:0:5} = jean- ] ; then 705 cd $MODEL/modipsl 706 cd util 707 if [ "`grep jeanzay AA_make.gdef`" = "" ] ; then # Bidouille pour compiler sur ada des vieux modipsl.tar 708 echo 'Warning jean-zay not in AA_make.gdef' 709 echo 'Think about updating' 710 exit 1 711 fi 712 ./ins_make $o_ins_make 713 # Compile IOIPSL on jean-zay 714 cd $MODEL/modipsl/modeles/IOIPSL/src 715 gmake 716 717 fi # of if [${hostname:0:5} = ada33 ] 669 718 echo install.sh ioipsl_OK `date` 670 719 fi # of if [ $ioipsl = 1 ] … … 690 739 -MPI /smplocal/intel/compilers_and_libraries_2017.2.174/linux/mpi/intel64/ \ 691 740 -arch X64_ADA > xios.log 2>&1 741 elif [ ${hostname:0:5} = jean- ] ; then 742 echo 'Need to work on install_xios implementation for jean-zay' 743 exit 692 744 else 693 745 ./install_xios.bash -prefix $MODEL/modipsl/modeles \ … … 921 973 echo resol=${grid_resolution} >> compile.sh 922 974 echo ./$makelmdz $OPT_MAKELMDZ -rrtm true $opt_cosp $opt_makelmdz_xios -d \$resol -v $veget_version -mem -parallel $parallel gcm >> compile.sh 975 echo ./$makelmdz $OPT_MAKELMDZ -rrtm true $opt_cosp $opt_makelmdz_xios -d \$resol -v $veget_version -mem -parallel $parallel gcm 923 976 chmod +x ./compile.sh 924 977 if [ $bench != 0 ] ; then ./compile.sh > $lmdzlog 2>&1 ; fi … … 947 1000 948 1001 if [ "$gcm" = "" ] ; then 949 echo 'Compilation failed !!' 950 # Ehouarn : temporary, do not exit and let job finish (to set up bench case) 951 #exit 952 set +e 1002 if [ $bench != 0 ] ; then 1003 echo 'Compilation failed !! Cannot run the benchmark;' 1004 exit 1005 else 1006 echo 'Compilation not done (only done when bench=1)' 1007 fi 953 1008 else 954 1009 echo '##########################################################' … … 1034 1089 fi 1035 1090 echo "ulimit -s unlimited" >> bench.sh 1036 echo "$mpirun -np 2 gcm.e > listing 2>&1" >> bench.sh 1091 if [ ${hostname:0:5} = jean- ] ; then 1092 echo "srun -n 2 -A $idris_acct@cpu gcm.e > listing 2>&1" >> bench.sh 1093 else 1094 echo "$mpirun -np 2 gcm.e > listing 2>&1" >> bench.sh 1095 fi 1037 1096 else 1038 1097 echo "./gcm.e > listing 2>&1" > bench.sh … … 1055 1114 echo 'You may re-run it with : ' 1056 1115 echo 'cd ' `pwd` '; ./bench.sh' 1057 echo 'ulimit -s unlimited'1058 echo 'export OMP_NUM_THREADS=2'1059 echo 'export OMP_STACKSIZE=800M'1060 echo "$mpirun -np 2 gcm.e "1116 # echo 'ulimit -s unlimited' 1117 # echo 'export OMP_NUM_THREADS=2' 1118 # echo 'export OMP_STACKSIZE=800M' 1119 # echo "$mpirun -np 2 gcm.e " 1061 1120 fi 1062 1121 echo '##########################################################'
Note: See TracChangeset
for help on using the changeset viewer.