You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* draft of eessi docs
* second draft of eessi doc
* third draft of docs
* Fix typo in EESSI documentation
* third draft of docs
* final draft of eessi docs
* fixing linting
* adding buildenv module section to eessi docs
@@ -30,6 +30,8 @@ To deactivate your EESSI environment you can either restart your shell using `ex
30
30
31
31
To enable GPU support, the cluster must be running a site-specific image build that has CUDA enabled. For a guide on how to do this, please refer to [docs/image-build.md](../image-build.md).
32
32
33
+
More information about EESSI GPU Support can be found in the [EESSI docs](https://www.eessi.io/docs/site_specific_config/gpu/).
34
+
33
35
### Using GPUs
34
36
35
37
All CUDA-enabled software in EESSI expects CUDA drivers in a specific `host_injections` directory.
@@ -38,7 +40,7 @@ All CUDA-enabled software in EESSI expects CUDA drivers in a specific `host_inje
38
40
39
41
Use the `link_nvidia_host_libraries.sh` script, provided by EESSI, to symlink your GPU drivers into `host_injections`.
@@ -50,43 +52,55 @@ Run `which nvcc` to confirm that the CUDA compiler is found.
50
52
51
53
If `nvcc` is not found, add the CUDA path to your environment:
52
54
53
-
```[bash]
55
+
```bash
54
56
export PATH=/usr/local/cuda/bin:$PATH
55
57
```
56
58
57
59
`which nvcc` should now show the path to the CUDA compiler.
58
60
59
-
#### Loading EESSI module for the GCC compiler
61
+
#### Loading EESSI buildenv module
62
+
63
+
The `buildenv` module provides the environment needed to build software with EESSI. The module sets up compiler and linker wrappers to ensure the builds are linked to the correct EESSI libraries. This means that the program can run even without the EESSI environment loaded.
64
+
65
+
To load the `buildenv` module, run:
66
+
67
+
```bash
68
+
module load buildenv/default-foss-2023b
69
+
```
70
+
71
+
Now you can run `cmake` and `make` to compile CUDA programs using EESSI's modules loaded by `buildenv`.
60
72
61
-
Running `which gcc` with EESSI initialised should initially show a path `.../2023.06/compat...` which points to the compatibility compiler.
73
+
Additional modules may need to be loaded to compile programs. To see available modules to load in EESSI run:
62
74
63
-
It is important to load a `gcc` version that is compatible with the host's CUDA version. This can be found by referring to the table below:
0 commit comments