Last active
December 7, 2016 14:42
-
-
Save ax3l/3b00b4f89111fb43f95d to your computer and use it in GitHub Desktop.
adios_quickcompile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export ZLIB_ROOT=/usr | |
wget http://users.nccs.gov/~pnorbert/adios-1.10.0.tar.gz | |
tar -xvzf adios-1.10.0.tar.gz | |
cd adios-1.10.0 | |
LDFLAGS="-fPIC -pthread" CFLAGS="-fPIC -g -O2" CXXFLAGS="-fPIC -g -O2" \ | |
./configure --prefix=$HOME/lib/adios-1.10.0 \ | |
--with-zlib=$ZLIB_ROOT --with-mpi=$MPI_ROOT \ | |
--enable-static --enable-shared \ | |
--without-dataspaces --disable-fortran | |
# hardware: | |
# --with-infiniband=/opt/pkg/infiniband/libibverbs/1.1.4/lib | |
# --with-lustre=DIR Location of lustre library | |
# | |
# transports: | |
# --with-phdf5=DIR | |
# --with-hdf5=DIR | |
# --with-netcdf=DIR | |
# --with-szip/bzip2 | |
# --with-dimes=DIR | |
# --with-dataspaces=DIR | |
# --with-bgq Whether to enable BGQ method or not | |
# ... | |
# | |
make -j | |
make install | |
cd .. | |
### Debian / Ubuntu incl. bp2h5 tools | |
CFLAGS="-fPIC -g" C_INCLUDE_PATH="/usr/include/hdf5/serial" \ | |
LDFLAGS="-pthread -L/usr/lib/x86_64-linux-gnu/hdf5/serial/" \ | |
./configure --enable-static --enable-shared --prefix=$HOME/lib/adios-master \ | |
--with-mxml=$MXML_ROOT --with-mpi=$MPI_ROOT --with-zlib=/usr | |
--with-hdf5=/usr/include/hdf5/serial | |
make -j2 && make && make install | |
export ADIOS_ROOT=$HOME/lib/adios-master/ | |
export LD_LIBRARY_PATH=$ADIOS_ROOT/lib:$LD_LIBRARY_PATH | |
export PATH=$ADIOS_ROOT/bin:$PATH | |
### Python numpy bindings | |
cd wrappers/numpy/ | |
CFLAGS="-g" CXXFLAGS="-g" python setup.py install --user |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For PIConGPU we can add the flag
--disable-fortran
to the adios configure, this reduce the compile time and dependencies.