You will need to understand how to use the terminal.
Our spack package is still in beta state and is continuously improved. Please feel free to report any issues that you might encounter.
Section author: Axel Huebl
First install spack itself via:
# get spack git clone https://github.com/spack/spack.git $HOME/src/spack # build spack's dependencies via spack :) $HOME/src/spack/bin/spack bootstrap # activate the spack environment source $HOME/src/spack/share/spack/setup-env.sh # install a supported compiler spack compiler list | grep -q firstname.lastname@example.org || spack install email@example.com && spack load firstname.lastname@example.org && spack compiler add # add the PIConGPU repository git clone https://github.com/ComputationalRadiationPhysics/spack-repo.git $HOME/src/spack-repo spack repo add $HOME/src/spack-repo
When you open a terminal next time or log back into the machine, make sure to activate the spack environment again via:
The installation of the latest version of PIConGPU is now as easy as:
spack install picongpu %email@example.com
PIConGPU can now be loaded with
spack load picongpu
For more information on variants of the
picongpu package in spack run
spack info picongpu and refer to the official spack documentation.
PIConGPU can also run without a GPU!
For example, to use our OpenMP backend, just add
backend=omp2b to the two commands above:
spack install picongpu backend=omp2b spack load picongpu backend=omp2b
If the install fails or you want to compile for CUDA 9.2, try using GCC 5.5.0:
spack compiler list | grep firstname.lastname@example.org | spack install email@example.com && spack load firstname.lastname@example.org && spack compiler add spack install picongpu %email@example.com spack load picongpu %firstname.lastname@example.org