Skip to content

Commit

Permalink
Update env for kesch-test
Browse files Browse the repository at this point in the history
* update the env for kesch-test env

* add netcdf root

* fixin netcdf paths
  • Loading branch information
clementval authored Mar 15, 2019
1 parent ad5c37f commit f15bd29
Showing 1 changed file with 17 additions and 26 deletions.
43 changes: 17 additions & 26 deletions tools/cscs-scripts/env_kesch-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,38 +67,29 @@ fi
#------------------------------ Set environment --------------------------------

module purge
module load cmake/3.9.1
module load PE/18.12
module load craype-network-infiniband
module load craype-haswell
module load gcc/5.4.0-2.26
module load cmake

if [ "$FC_COMPILER" = "pgfortran" ]; then

module unuse /apps/escha/UES/generic/modulefiles:/apps/escha/UES/PrgEnv-gnu-17.02/modulefiles:/apps/escha/UES/PrgEnv-cray-17.06/modulefiles:/apps/escha/UES/experimental/modulefiles
module use /apps/escha/UES/jenkins/RH7.4/gnu_PE17.02/easybuild/modules/all
module use /apps/escha/UES/jenkins/RH7.4/generic/easybuild/modules/all
module use /apps/escha/UES/jenkins/RH7.4/cray_PE17.06/easybuild/modules/all

module load craype-haswell
module load craype-accel-nvidia35
module switch mvapich2_cce/2.2rc1.0.3_cuda80 mvapich2gdr_gnu/2.2_cuda_8.0
module load PrgEnv-pgi/17.10
module load gcc/5.4.0-2.26

module load PrgEnv-pgi/18.10
module load netcdf-fortran/4.4.4-pgi-18.10-gcc-5.4.0-2.26
module load netcdf/4.6.1-pgi-18.10-gcc-5.4.0-2.26
elif [ "$FC_COMPILER" = "ftn" ]; then
module unuse /apps/escha/UES/generic/modulefiles:/apps/escha/UES/PrgEnv-gnu-17.02/modulefiles:/apps/escha/UES/PrgEnv-cray-17.06/modulefiles:/apps/escha/UES/experimental/modulefiles
module use /apps/escha/UES/jenkins/RH7.4/gnu_PE17.02/easybuild/modules/all
module use /apps/escha/UES/jenkins/RH7.4/generic/easybuild/modules/all
module use /apps/escha/UES/jenkins/RH7.4/cray_PE17.06/easybuild/modules/all

module load craype-haswell
module load PrgEnv-cray
module load craype-accel-nvidia35
module load craype-network-infiniband
module switch mvapich2_cce/2.2rc1.0.3_cuda80 mvapich2gdr_gnu/2.2_cuda_8.0
module load gcc/5.4.0-2.26
export GCC_X86_64=$EBROOTGCCCORE
module load CrayCCE/.18.12
module load netCDF-Fortran/4.4.4-CrayCCE-18.12
module load netCDF/4.4.1.1-CrayCCE-18.12
export GCC_X86_64=$EBROOTGCCCORE
else
module load PrgEnv-gnu
module load PrgEnv-gnu
module load netcdf-fortran/4.4.4-gmvolf-17.02
module load netcdf/4.4.1.1-gmvolf-17.02
fi

export NETCDF_ROOT=${EBROOTNETCDF}

export CXX=$(which g++)
export CC=$(which gcc)
export FC=$(which $FC_COMPILER)
Expand Down

0 comments on commit f15bd29

Please sign in to comment.