|
# Spack environment on HPC
|
|
# Spack environment on HPC
|
|
|
|
## Loading spack
|
|
The first step to use spack on the user account on Leonardo is to load spack. If spack is not available you should ask the admin. In the $HOME folder run the following instructions
|
|
The first step to use spack on the user account on Leonardo is to load spack. If spack is not available you should ask the admin. In the $HOME folder run the following instructions
|
|
|
|
|
|
```
|
|
```
|
|
module load spack
|
|
module load spack
|
|
```
|
|
```
|
|
|
|
## Independent Spack Environment
|
|
|
|
|
|
As long as in the HPC you may have not permissions to create environments into the spack installation directory it is needed to create an **independent Spack enviroment** from a yaml file
|
|
As long as in the HPC you may have not permissions to create environments into the spack installation directory it is needed to create an **independent Spack enviroment** from a yaml file
|
|
```
|
|
```
|
|
mkdir my_env
|
|
mkdir my_env
|
... | @@ -28,3 +30,11 @@ Additionally you need to create a config.yaml file as shown in the file |
... | @@ -28,3 +30,11 @@ Additionally you need to create a config.yaml file as shown in the file |
|
vi config.yaml
|
|
vi config.yaml
|
|
```
|
|
```
|
|
[config.yaml](uploads/5cda49625f3c134869a000d3f17070d8/config.yaml)
|
|
[config.yaml](uploads/5cda49625f3c134869a000d3f17070d8/config.yaml)
|
|
|
|
|
|
|
|
## Activating the environment
|
|
|
|
|
|
|
|
For activating the environment inside the environment folder
|
|
|
|
```
|
|
|
|
spack env activate . -p
|
|
|
|
```
|
|
|
|
## COMPSs |
|
|
|
\ No newline at end of file |