Contents
Support repository for getting the OCTOPUS code package into Spack.
Mostly aimed for maintainers of the Octopus package in spack: to test changes to the octopus/spack.py file before request merges in spack upstream.
There is a related effort to run some tests on the Octopus package in spack for older versions of spack at https://github.com/fangohr/spack-ci-octopus.
We also provide some hints on how to install Octopus with Spack (see below).
Compile Octopus on Linux with Spack. Spack's preferred version of Octopus is 12.2 at the moment (if you follow Compilation of Octopus using Spack):
Spack develop version, preferred version of Octopus
Spack develop version, develop version of Octopus
A check to see if our octopus/package.py file is in sync with the upstream spack repository.
At the moment, this is under development, and we need two lines:
- get spack:
git clone https://github.com/spack/spack
- activate spack:
source spack/share/spack/setup-env.sh
Then compile octopus (this could take some time). For this example, we want to include netcdf support:
spack install octopus +netcdf
Ideally, there are no errors. This should install Octopus 12.2
There are further variants you can install. For example:
spack install octopus +netcdf+parmetis+arpack+cgal+pfft+python+likwid+libyaml+elpa+nlopt
To see an overview of available variants, use spack show octopus
.
This should install the last Octopus release available in spack. (Use spack info octopus
to see available versions.)
- Activate spack:
source spack/share/spack/setup-env.sh
- Load octopus
spack load octopus
- Use octopus (it should be in the
$PATH
). You can check the octopus version usingoctopus version
.
See https://github.com/fangohr/octopus-in-docker .
See for example the steps in this Dockerfile on https://github.com/fangohr/octopus-in-docker