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

adding build script

parents
#!/bin/sh
# Building HDF5
source setup.sh
source build_hdf5.sh
source build_argobots.sh
source build_async.sh
source build_passthru.sh
source build_h5py.sh
#!/bin/sh
git clone https://github.com/pmodels/argobots.git
cd argobots
./autogen.sh
CC=gcc CXX=g++ ./configure --prefix=$ABT_DIR
make all install -j4
cd -
#!/bin/sh
git clone https://github.com/hpc-io/vol-async
cd vol-async/src
sed -e "s/HDF5_DIR =/#HDF5_DIR =/g" -e "s/ABT_DIR =/#ABT_DIR =/g" -e "s/CC = cc/CC=mpicc/g" Makefile > Makefile.local
make -f Makefile.local
cp lib* $HDF5_VOL_DIR/lib
cp *.h $HDF5_VOL_DIR/include
cd -
#!/bin/sh
git clone https://github.com/hpc-io/vol-cache
cd vol-cache
make all
cd -
#!/bin/sh
echo "Building h5py"
module load intelpython36
git clone https://github.com/h5py/h5py.git
cd h5py
HDF5_MPI=ON CC=mpicc CXX=mpicxx python setup.py
HDF5_MPI=ON CC=mpicc CXX=mpicxx python setup.py install --prefix=$SDK_DIR/h5py
cd -
#!/bin/sh
# This is for building HDF5 binary
#
./autogen.sh
#module load intelmpi-login-eng
#export LDFLAGS="-llustreapi -L/opt/cray/pe/pmi/5.0.14/lib64/ -lpmi"
git clone -b async_vol_register_optional https://github.com/hpc-io/hdf5.git
cd hdf5
CC=mpicc CXX=mpicxx CFLAGS='-O3 -DTHETA -Dtopo_timing' ./configure --enable-parallel --enable-symbols=yes --prefix=$HDF5_ROOT/ --enable-build-mode=debug --enable-shared --enable-parallel --enable-threadsafe --enable-unsupported
make -j 8
make install
cd -
#!/bin/sh
git clone https://github.com/hpc-io/vol-external-passthrough
cd vol-external-passthrough
sed -e "s/dylib/so/g" -e "s/HDF5_DIR=/#HDF5_DIR=/g" -e "s/dynamiclib/shared/g" -e "s/-current_version 1.0//g" Makefile > Makefile.local
make -f Makefile.local
cp *.h $HDF5_VOL_DIR/include
cp lib* $HDF5_VOL_DIR/lib
cd -
#!/bin/sh
function cmkdir() {
for f in $@
do
[ -e $f ] || mkdir $f
done
}
export EXAHDF5_ROOT=$PWD
export SDK_DIR=$EXAHDF5_ROOT/soft/
export HDF5_ROOT=$SDK_DIR/hdf5
export HDF5_DIR=$HDF5_ROOT
export HDF5_VOL_DIR=$SDK_DIR/hdf5/vol
export ABT_DIR=$SDK_DIR/argobots/
export CC=mpicc
export CXX=mpicxx
cmkdir $SDK_DIR $HDF5_ROOT $HDF5_VOL_DIR $ABT_DIR
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