Commit cdaded93 authored by Huihuo Zheng's avatar Huihuo Zheng
Browse files

added mpi4py building script

parent ddc09370
#!/bin/sh
source build_mpi4py.sh
echo "Building h5py"
git clone https://github.com/h5py/h5py.git
echo "
......
#!/bin/sh
git clone https://github.com/mpi4py/mpi4py.git
version=$(python -c "import sys; print('%s.%s'%(sys.version_info[0], sys.version_info[1]))")
cd mpi4py
CC=mpicc CXX=mpicxx python setup.py build
CC=mpicc CXX=mpicxx python setup.py install --prefix=$SDK_DIR/mpi4py/
cd -
export MPI4PY_PATH=$SDK_DIR/mpi4py/lib/python$version/site-package
export PYTHONPATH=$MPI4PY_PATH:$PYTHONPATH
#!/bin/sh
export H5PY_PATH=$(ls -d --color=none $SDK_DIR/h5py/lib/python*/site-packages/h5py*.egg)
sed -e "s/PWD/${PWD//\//\\/}/g" -e "s/H5PY_PATH/${H5PY_PATH//\//\\/}/g" modulefiles/exahdf5.template > modulefiles/exahdf5
export H5PY_PATH=$(ls -d $SDK_DIR/h5py/lib/python*/site-packages/h5py*.egg)
sed -e "s/MPI4PY_PATH/${MPI4PY_PATH//\//\\/}/g" -e "s/PWD/${PWD//\//\\/}/g" -e "s/H5PY_PATH/${H5PY_PATH//\//\\/}/g" modulefiles/exahdf5.template > modulefiles/exahdf5
......@@ -38,4 +38,5 @@ prepend-path LD_LIBRARY_PATH $ABT_DIR/lib
prepend-path LD_LIBRARY_PATH $HDF5_ROOT/lib
prepend-path LD_LIBRARY_PATH $HDF5_VOL_DIR/lib
prepend-path PYTHONPATH H5PY_PATH
prepend-path PYTHONPATH MPI4PY_PATH
prepend-path PATH $SDK_DIR/h5bench/bin
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment