Changeset 705 for codes/icosagcm/devel/Python/env/ifort_CICLAD.env
- Timestamp:
- 06/20/18 15:31:05 (6 years ago)
- File:
-
- 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
Note: See TracChangeset
for help on using the changeset viewer.