source: codes/icosagcm/devel/Python/env/CICLAD.env @ 615

Last change on this file since 615 was 615, checked in by dubos, 6 years ago

devel/unstructured : import Python layer from HEAT

File size: 1.9 KB
Line 
1module purge
2module load intel/15.0.6.233
3module load openmpi/1.6.5-ifort
4module load hdf5/1.8.18-parallel-ifort
5module load netcdf4/4.4.1.1-parallel-ifort
6module load python/2.7-anaconda
7
8# If not done yet, certain python packages must be installed in a dynamico-only conda environment :
9#   conda create -n dynamico python
10#   source activate dynamico
11#   pip install scipy mpi4py jinja2 matplotlib cython cmake
12
13# netCDF4 must be installed manually in order to use the netCDF library from the modules (requires Cython, see above)
14# for this download and unpack
15#   https://pypi.python.org/packages/6a/37/49fd7cc21af0fb173e40de5e15f7fdd48d521429922a90347219c77b0c36/netCDF4-1.2.9.tar.gz#md5=e320491d52c42e937e6df47b56a2579c
16# then
17#   python setup.py build
18#   python setup.py install
19
20# CICLAD does not have a parmetis module
21# 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
27#   make config shared=1 prefix=$HOME/.conda/envs/dynamico
28#   make install
29# manually install libmetis.so and metis.h ...
30#   cp $(find . -name 'libmetis.so') $HOME/.conda/envs/dynamico/lib/
31#   cp $(find . -name 'metis.h') $HOME/.conda/envs/dynamico/include/
32
33source activate dynamico
34PARMETIS_CFLAGS="-I$HOME/.conda/envs/dynamico/include"
35PARMETIS_LDFLAGS="-L$HOME/.conda/envs/dynamico/lib"
36
37export NETCDF_LDFLAGS="$(nf-config --flibs) -lhdf5 -lz -ldl -lm"
38
39# check that packages work
40for x in netCDF4 mpi4py numpy jinja2 ; do python -c "import $x" ; done
41python -c "import ctypes ; parmetis=ctypes.cdll.LoadLibrary('libparmetis.so')"
42
43export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/.conda/envs/dynamico/lib
44
45BASEDIR=$(dirname ${BASH_SOURCE[0]})
46. $BASEDIR/linux.env
Note: See TracBrowser for help on using the repository browser.