Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revisionBoth sides next revision | ||
doku:vsc5quickstart [2023/02/17 17:47] – msiegel | doku:vsc5quickstart [2023/05/17 14:54] – msiegel | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Quick start guide for VSC-5 ====== | ====== Quick start guide for VSC-5 ====== | ||
- | |||
- | **Status: 2023/01** | ||
- | |||
- | This page is under construction. | ||
===== Connecting ===== | ===== Connecting ===== | ||
Line 23: | Line 19: | ||
- | ===== Loading Modules & Spack Environments ===== | + | ==== New SPACK without environments |
- | Different CPUs come with different compilers, so we use | + | Having worked |
- | the new spack feature '' | + | |
- | package. | + | |
- | On login the default '' | + | There are now three separate spack installation trees corresponding to the CPU/GPU architectures |
- | automatically, | + | |
- | with '' | + | |
- | On VSC5 no default modules are loaded. Please do that by yourself | + | * skylake - Intel CPUs; works on Intel Skylake and Cascadelake CPUs |
- | using '' | + | * zen - AMD CPUs; works on Zen 2 and 3 CPUs |
+ | * cuda-zen - AMD CPUs + NVIDIA GPUs; works on all nodes equipped with graphics cards | ||
- | Find the official SPACK documentation at https://spack.readthedocs.io/ | + | By default |
- | + | ||
- | + | ||
- | ==== List Spack Environments ==== | + | |
- | + | ||
- | Type '' | + | |
- | which one is active. | + | |
< | < | ||
- | $ spack env list | + | zen [user@l51 ~]$ |
- | ==> 2 environments | + | |
- | cascadelake | + | |
</ | </ | ||
- | The current '' | + | Read more about SPACK at: |
+ | * [[doku:spack-transition | Transition to new SPACK without Environments]] | ||
+ | * [[doku:spack]] | ||
+ | * [[https:// | ||
- | < | ||
- | (zen3) [myname@l55 ~]# | ||
- | </ | ||
- | Mind that if your prompt is changed later, like when loading a '' | + | ==== Load a module |
- | environment'' | + | |
- | not be shown correctly in your prompt. | + | |
- | + | ||
- | When a spack environment is activated, the command '' | + | |
- | environment. | + | |
- | + | ||
- | The command '' | + | |
- | spack environment. | + | |
- | + | ||
- | + | ||
- | ==== Change Spack Environment ==== | + | |
- | + | ||
- | If you want to look for a certain package that belongs to another | + | |
- | architecture, | + | |
- | + | ||
- | < | + | |
- | $ spacktivate < | + | |
- | $ spacktivate cascadelake | + | |
- | </ | + | |
- | + | ||
- | Only then '' | + | |
- | + | ||
- | + | ||
- | ==== Save Spack Environment ==== | + | |
- | + | ||
- | The following creates a load script for your current spack environment | + | |
- | with all loaded modules: | + | |
- | + | ||
- | < | + | |
- | $ spack env loads -r | + | |
- | </ | + | |
- | + | ||
- | This creates a file called '' | + | |
- | directory. Sourcing that file in bash will make the environment | + | |
- | available to the user. The '' | + | |
- | '' | + | |
- | environment, | + | |
- | + | ||
- | + | ||
- | ==== Load a Module | + | |
Please always use spack, see [[doku: | Please always use spack, see [[doku: | ||
HPC systems]]. | HPC systems]]. | ||
+ | |||
+ | Of course '' | ||
- | ===== Compile | + | ===== Compile |
A program needs to be compiled on the hardware it will later run | A program needs to be compiled on the hardware it will later run |