Changeset 705 for codes/icosagcm/devel
- Timestamp:
- 06/20/18 15:31:05 (6 years ago)
- Location:
- codes/icosagcm/devel
- Files:
-
- 3 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
codes/icosagcm/devel/Python/env/ifort_CICLAD.env
r702 r705 1 module purge 2 module load intel/15.0.6.233 3 module load openmpi/1.6.5-ifort 4 module load hdf5/1.8.18-parallel-ifort 5 module load netcdf4/4.4.1.1-parallel-ifort 1 # arch.env and arch.path should be sourced before sourcing this script 6 2 module load python/2.7-anaconda 7 3 8 # If not done yet, certain python packages must be installed in a dynamico-only conda environment :4 # If not done yet, certain python packages must be installed in a dynamico-only conda environment of yours : 9 5 # conda create -n dynamico python 10 6 # source activate dynamico … … 12 8 13 9 # netCDF4 must be installed manually in order to use the netCDF library from the modules (requires Cython, see above) 14 # for this download and unpack15 # https://pypi.python.org/packages/6a/37/49fd7cc21af0fb173e40de5e15f7fdd48d521429922a90347219c77b0c36/netCDF4-1.2.9.tar.gz#md5=e320491d52c42e937e6df47b56a2579c16 # then17 # python setup.py build18 # python setup.py install10 # for unpack Python/extern/netCDF4-1.2.9.tar.gz then 11 # LDFLAGS='-lirc' python setup.py build 12 # cp -pr build/lib.linux-x86_64-2.7/net* ~/.conda/envs/dynamico/lib/python2.7/site-packages/ 13 # NOTE : libirc.so is the intel runtime library and is needed at runtime. 14 # FIXME : python setup.py install does not seem to install anything, hence 'cp -pr ...'. There must be a better way. 19 15 20 16 # CICLAD does not have a parmetis module 21 17 # compiling parmetis uses cmake, installed above using pip because the system-wide cmake might not work with the modules 22 # then download parmetis from 23 # http://glaros.dtc.umn.edu/gkhome/fetch/sw/parmetis/parmetis-4.0.3.tar.gz 24 # unpack, follow workaround given in 25 # https://stackoverflow.com/questions/35058709/building-shared-parmetis-4-0-3 26 # then 18 # for this unpack Python/extern/parmetis-4.0.3.tar.gz then 27 19 # make config shared=1 prefix=$HOME/.conda/envs/dynamico 28 20 # make install … … 30 22 # cp $(find . -name 'libmetis.so') $HOME/.conda/envs/dynamico/lib/ 31 23 # cp $(find . -name 'metis.h') $HOME/.conda/envs/dynamico/include/ 24 # NOTE : the tar.gz is derived from http://glaros.dtc.umn.edu/gkhome/fetch/sw/parmetis/parmetis-4.0.3.tar.gz 25 # with modifications along the lines of 26 # https://stackoverflow.com/questions/35058709/building-shared-parmetis-4-0-3 32 27 33 28 source activate dynamico 34 29 PARMETIS_CFLAGS="-I$HOME/.conda/envs/dynamico/include" 35 PARMETIS_LDFLAGS="-L$HOME/.conda/envs/dynamico/lib "30 PARMETIS_LDFLAGS="-L$HOME/.conda/envs/dynamico/lib -liomp5" 36 31 37 32 export NETCDF_LDFLAGS="$(nf-config --flibs) -lhdf5 -lz -ldl -lm" … … 43 38 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/.conda/envs/dynamico/lib 44 39 45 BASEDIR=$(dirname ${BASH_SOURCE[0]}) 46 . $BASEDIR/linux.env 40 . linux.env -
codes/icosagcm/devel/arch/arch-ifort_CICLAD.fcm
r611 r705 6 6 %FPP_FLAGS -P 7 7 %FPP_DEF KEY_NONE CPP_NETCDF4 8 %BASE_FFLAGS - i4 -r8 -auto -align all -I${MKLROOT}/include8 %BASE_FFLAGS -fPIC -i4 -r8 -auto -align all -I${MKLROOT}/include 9 9 %PROD_FFLAGS -g -traceback -O3 10 10 %DEV_FFLAGS -g -O1 -traceback … … 12 12 %MPI_FFLAGS 13 13 %OMP_FFLAGS -openmp -openmp-threadprivate compat 14 %BASE_LD - i4 -r8 -auto -L${MKLROOT}/lib/intel64 -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lm14 %BASE_LD -fPIC -i4 -r8 -auto -L${MKLROOT}/lib/intel64 -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lm 15 15 %MPI_LD 16 16 %OMP_LD -openmp -
codes/icosagcm/devel/arch/arch-ifort_CICLAD.path
r611 r705 2 2 NETCDF_LIBDIR=$(nf-config --flibs) 3 3 NETCDF_LIB="" 4 4 5 MPI_INCDIR="" 5 6 MPI_LIBDIR="" … … 9 10 HDF5_LIB="" 10 11 11 XIOS_INCDIR="-I$PWD/../XIOS/inc" 12 XIOS_LIBDIR="-L$PWD/../XIOS/lib" 12 XIOS_ROOTDIR=$(cd -P ../XIOS ; pwd) 13 XIOS_INCDIR="-I$XIOS_ROOTDIR/inc" 14 XIOS_LIBDIR="-L$XIOS_ROOTDIR/lib" 13 15 XIOS_LIB="-lxios -lstdc++" 14 16 … … 16 18 IOIPSL_LIBDIR="-L $PWD/../IOIPSL/lib" 17 19 IOIPSL_LIB="-lioipsl" 20 21 MKL_LIBDIR="-L $MKLROOT/lib" 22 MKL_LIBDIR="-I $MKLROOT/include" 23 MKL_LIB="" 24 CURRENT_ARCH=ifort_CICLAD -
codes/icosagcm/devel/make_python
r694 r705 83 83 84 84 log mpicc -c -std=c99 -fPIC $PARMETIS_CFLAGS Python/src/partition.c -o obj/partition.o 85 make_so $XIOS_ROOTDIR/lib/libxios.a $LIBDIR/libxios.so "$NETCDF_LDFLAGS "85 make_so $XIOS_ROOTDIR/lib/libxios.a $LIBDIR/libxios.so "$NETCDF_LDFLAGS -lstdc++" 86 86 make_so $LIBDIR/libicosa.a $LIBDIR/libicosa.so "-L$LIBDIR -lxios $KERNELS_LDFLAGS" "physics_external_mod.o physics_mod.o timeloop_gcm_mod.o icosa_init_mod.o" obj/partition.o 87 87 … … 115 115 if [[ "$CURRENT_ARCH" == "" ]] ; then echo "Current architecture undefined or unsupported" ; exit ; fi 116 116 117 . Python/env/${CURRENT_ARCH}.env 117 cd Python/env ; . ${CURRENT_ARCH}.env ; cd $DYNAMICO_ROOT 118 118 119 119 cmd_$1
Note: See TracChangeset
for help on using the changeset viewer.