Skip to content

Instantly share code, notes, and snippets.

@ax3l
Last active December 7, 2016 14:42
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ax3l/3b00b4f89111fb43f95d to your computer and use it in GitHub Desktop.
Save ax3l/3b00b4f89111fb43f95d to your computer and use it in GitHub Desktop.
adios_quickcompile
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
@psychocoderHPC
Copy link

For PIConGPU we can add the flag --disable-fortran to the adios configure, this reduce the compile time and dependencies.

@ax3l
Copy link
Author

ax3l commented Aug 29, 2016

added! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment