Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
doku:spack [2022/03/04 07:16] – [Loading modules] dfischak | doku:spack [2023/05/17 15:26] (current) – msiegel | ||
---|---|---|---|
Line 3: | Line 3: | ||
[[https:// | [[https:// | ||
- | Available on the following clusters: | ||
- | * VSC-4 | ||
- | ---- | + | ==== New SPACK without environments |
- | ==== List available Packages | + | |
- | Most software on VSC4 is installed via spack, to list available software packages use: | + | Having worked with spack environments for some time, we have encountered several severe issues which have convinced us that we need to find a more practical way of maintaining software packages at VSC. |
+ | |||
+ | There are now three separate spack installation trees corresponding to the CPU/GPU architectures on VSC: | ||
+ | |||
+ | * skylake - Intel CPUs; works on Intel Skylake and Cascadelake CPUs | ||
+ | * zen - AMD CPUs; works on Zen 2 and 3 CPUs | ||
+ | * cuda-zen - AMD CPUs + NVIDIA GPUs; works on all nodes equipped with graphics cards | ||
+ | |||
+ | By default the spack installation tree suitable for the current compute/ | ||
+ | |||
+ | < | ||
+ | zen [user@l51 ~]$ | ||
+ | </ | ||
+ | |||
+ | Read more at: | ||
+ | |||
+ | [[doku: | ||
+ | |||
+ | |||
+ | ==== List available packages ==== | ||
+ | |||
+ | Most software on VSC4/5 is installed via spack, to list available software packages use: | ||
< | < | ||
Line 18: | Line 36: | ||
< | < | ||
- | spack find %gcc@9.1.0 | + | spack find %gcc@12.2.0 |
+ | </ | ||
+ | |||
+ | List specific installed software packages use: | ||
+ | |||
+ | < | ||
+ | spack find openmpi | ||
</ | </ | ||
Line 24: | Line 48: | ||
< | < | ||
- | spack find openmpi@4.1.0 | + | spack find openmpi@4.1.4 |
</ | </ | ||
Line 30: | Line 54: | ||
< | < | ||
- | spack find openmpi@4.1.0%gcc@9.1.0 | + | spack find openmpi@4.1.4%gcc@12.2.0 |
</ | </ | ||
Line 36: | Line 60: | ||
< | < | ||
- | spack find -l openmpi@4.1.0%gcc@9.1.0 | + | spack find -l openmpi@4.1.4%gcc@12.2.0 |
- | spack find -lv openmpi@4.1.0%gcc@9.1.0 | + | spack find -lv openmpi@4.1.4%gcc@12.2.0 |
- | spack find -lvd openmpi@4.1.0%gcc@9.1.0 | + | spack find -lvd openmpi@4.1.4%gcc@12.2.0 |
</ | </ | ||
Line 49: | Line 73: | ||
</ | </ | ||
- | This will list all available versions of '' | + | This will list all available versions of '' |
- | ---- | + | List all currently loaded packages: |
- | ==== Loading | + | < |
+ | spack find --loaded | ||
+ | </ | ||
+ | |||
+ | ==== Load modules ==== | ||
The '' | The '' | ||
Line 61: | Line 89: | ||
< | < | ||
- | spack load openmpi@4.1.0%gcc@9.1.0 | + | spack load openmpi@4.1.4%gcc@12.2.0 |
</ | </ | ||
- | This will load the corresponding module: | + | This will load the corresponding module, even if '' |
< | < | ||
- | # module list | + | zen xyz@l51:~$ spack load openmpi@4.1.4%gcc@12.2.0 arch=linux-almalinux8-zen3 /2vqdnay |
- | Currently Loaded | + | zen xyz@l51: |
- | 1) openmpi/4.1.0-gcc-9.1.0-2cmze2s | + | No Modulefiles |
+ | zen xyz@l51:~$ spack find --loaded | ||
+ | -- linux-almalinux8-zen3 | ||
+ | autoconf@2.69 | ||
+ | autoconf-archive@2022.02.11 | ||
+ | automake@1.16.5 | ||
+ | berkeley-db@18.1.40 | ||
+ | bison@3.8.2 | ||
+ | bzip2@1.0.8 | ||
+ | ca-certificates-mozilla@2022-10-11 | ||
+ | cmake@3.24.3 | ||
+ | ==> 61 loaded packages | ||
</ | </ | ||
Line 74: | Line 113: | ||
< | < | ||
- | module load openmpi/ | + | module load openmpi/ |
</ | </ | ||
Line 82: | Line 121: | ||
< | < | ||
- | # spack find -l openmpi@4.1.0%gcc@9.1.0 | + | zen xyz@l51: |
+ | -- linux-almalinux8-zen3 / gcc@12.2.0 --------------------------- | ||
+ | 2vqdnay openmpi@4.1.4 | ||
==> 1 installed package | ==> 1 installed package | ||
- | -- linux-centos7-x86_64 / gcc@9.1.0 ----------------------------- | + | |
- | 2cmze2s openmpi@4.1.0 | + | |
</ | </ | ||
- | The hash '' | + | The hash '' |
< | < | ||
- | spack load /2cmze2s | + | spack load /2vqdnay |
</ | </ | ||
+ | Unload all currently loaded packages: | ||
+ | < | ||
+ | spack unload --all | ||
+ | </ | ||