openPMD/openPMD-api:latest
$ singularity pull shub://openPMD/openPMD-api:latest
Singularity Recipe
Bootstrap: docker
From: debian:unstable
#From: debian:testing
#From: ubuntu:cosmic
%help
Welcome to the openPMD-api container.
This container contains a pre-installed openPMD-api library.
This container provides serial I/O.
Supported backends are HDF5 and ADIOS.
Supported frontends are C++11 and Python3.
%setup
mkdir -p ${SINGULARITY_ROOTFS}/opt/openpmd-api
%files
./* /opt/openpmd-api
%post
apt-get update && \
apt-get install -y --no-install-recommends \
cmake \
make \
g++ \
ipython3 \
python3-dev \
pybind11-dev \
libadios-bin libadios-dev \
libglib2.0-dev libbz2-dev libibverbs-dev libnetcdf-dev \
libhdf5-dev && \
rm -rf /var/lib/apt/lists/*
# python3-numpy
# missing: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=900804
# libadios-openmpi-dev
# libopenmpi-dev libhdf5-openmpi-dev
cd $(mktemp -d)
cmake /opt/openpmd-api \
-DopenPMD_USE_MPI=OFF \
-DopenPMD_USE_HDF5=ON \
-DopenPMD_USE_ADIOS1=ON \
-DopenPMD_USE_ADIOS2=OFF \
-DopenPMD_USE_PYTHON=ON \
-DPYTHON_EXECUTABLE=$(which python3) \
-DBUILD_TESTING=OFF \
-DCMAKE_INSTALL_PREFIX=/usr/local \
-DCMAKE_INSTALL_PYTHONDIR=lib/python3.6/dist-packages
make
# make test
make install
#%test
# make test
%runscript
ipython3
%labels
openPMD_HAVE_MPI OFF
openPMD_HAVE_HDF5 ON
openPMD_HAVE_ADIOS1 ON
openPMD_HAVE_ADIOS2 OFF
openPMD_HAVE_PYTHON ON
Collection
- Name: openPMD/openPMD-api
- License: GNU Lesser General Public License v3.0
View on Datalad
Metrics
key | value |
---|---|
id | /containers/openPMD-openPMD-api-latest |
collection name | openPMD/openPMD-api |
branch | dev |
tag | latest |
commit | 529938265022027c8ea3536692c5414f19582711 |
version (container hash) | 6b8ebd814134aaa19aeae40378ee5c05 |
build date | 2019-10-20T19:32:24.577Z |
size (MB) | 706 |
size (bytes) | 245514271 |
SIF | Download URL (please use pull with shub://) |
Datalad URL | View on Datalad |
Singularity Recipe | Singularity Recipe on Datalad |
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.