Skip to content

Instantly share code, notes, and snippets.

@berceanu
Created May 5, 2022 08:03
Show Gist options
  • Save berceanu/059b391c4762141877c06eff0dcc48a1 to your computer and use it in GitHub Desktop.
Save berceanu/059b391c4762141877c06eff0dcc48a1 to your computer and use it in GitHub Desktop.
Install instructions for Smilei using the spack package manager.
 . spack/share/spack/setup-env.sh
spack install openmpi@4.1.3 %gcc@9.4.0
spack load openmpi@4.1.3

spack install hdf5@1.12.2 %gcc@9.4.0 +cxx +fortran ^openmpi
spack load hdf5@1.12.2 

spack install ffmpeg@4.4.1 %gcc@9.4.0

spack install py-h5py@3.6.0 %gcc@9.4.0 +mpi ^openmpi

spack install py-sphinx py-numpy py-matplotlib py-pint py-ipython %gcc@9.4.0
spack load python@3.9.12
spack load openmpi@4.1.3
spack load hdf5@1.12.2
spack load /nfkwb6w
export HDF5_ROOT_DIR=$(spack location -i /nfkwb6w7zfiph2xwtdek3thsxuljilho)
export SMILEICXX=/home/johndoe/spack/opt/spack/linux-ubuntu20.04-icelake/gcc-9.4.0/openmpi-4.1.3-uv7zugcavhzcg65tb7liyfq4xsjjupho/bin/mpicxx
export PYTHONEXE=/home/johndoe/spack/opt/spack/linux-ubuntu20.04-icelake/gcc-9.4.0/python-3.9.12-u6gyvcymxwzo473x74kompq34gtenrwk/bin/python
@berceanu
Copy link
Author

berceanu commented May 5, 2022

make:

Linking smilei
/usr/bin/ld: cannot find -lpython3.9
/usr/bin/ld: cannot find -lintl
collect2: error: ld returned 1 exit status
make: *** [makefile:298: smilei] Error 1

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