ADD: steps for QE development compilation with Spack
All checks were successful
Build and Deploy Documentation / build-and-deploy (push) Successful in 6s
All checks were successful
Build and Deploy Documentation / build-and-deploy (push) Successful in 6s
This commit is contained in:
parent
cd422a9a48
commit
1757aad9ca
@ -67,8 +67,10 @@ module load nvhpc/25.3 openmpi/main-6bnq-A100-gpu quantum-espresso/7.4.1-nxsw-gp
|
|||||||
|
|
||||||
## Developing your own GPU code
|
## Developing your own GPU code
|
||||||
### Spack
|
### Spack
|
||||||
1. ```spack config edit ```
|
1. Salloc on a GPU node (ALSO FOR CPU CODE!!)
|
||||||
2. Add granularity: microarchitectures to your config (if you use nvhpc compiler! Not needed for CPU builds!)
|
```salloc --partition=a100-interactive --clusters=gmerlin7 --time=01:00:00 --ntasks=16 --nodes=1 --gpus=2 --mem=40000```
|
||||||
|
2. ```spack config edit ```
|
||||||
|
3. Add granularity: microarchitectures to your config (if you use nvhpc compiler! Not needed for CPU builds!)
|
||||||
```bash
|
```bash
|
||||||
spack:
|
spack:
|
||||||
concretizer:
|
concretizer:
|
||||||
@ -76,10 +78,11 @@ spack:
|
|||||||
targets:
|
targets:
|
||||||
granularity: microarchitectures
|
granularity: microarchitectures
|
||||||
```
|
```
|
||||||
3. ```spack add quantum-espresso@develop +cuda +mpi +mpigpu hdf5=parallel %nvhpc arch=linux-sles15-zen3 # GPU```
|
4. ```spack add quantum-espresso@develop +cuda +mpi +mpigpu hdf5=parallel %nvhpc arch=linux-sles15-zen3 # GPU```
|
||||||
3. ```spack add quantum-espresso@develop +mpi hdf5=parallel %gcc # CPU```
|
5. ```spack add quantum-espresso@develop +mpi hdf5=parallel %gcc # CPU```
|
||||||
5. ```spack develop quantum-espresso@develop # clone your code under /afs/psi.ch/sys/spack/user/$USER/spack-environment/quantum-espresso```
|
6. ```spack develop quantum-espresso@develop # clone the code under /afs/psi.ch/sys/spack/user/$USER/spack-environment/quantum-espresso```
|
||||||
6. ```spack install -v quantum-espresso@develop```
|
7. Make changes in /afs/psi.ch/sys/spack/user/$USER/spack-environment/quantum-espresso
|
||||||
|
8. Build: ```spack install [-jN] -v --until=build quantum-espresso@develop```
|
||||||
|
|
||||||
### Environment modules
|
### Environment modules
|
||||||
#### CPU
|
#### CPU
|
||||||
|
Loading…
x
Reference in New Issue
Block a user