... | ... | @@ -37,5 +37,19 @@ CCFLAGS=-I/opt/cray/pe/hdf5/1.10.0/GNU/5.1/include |
|
|
CUDA_CFLAGS=-I/opt/cray/pe/hdf5/1.10.0/GNU/5.1/include
|
|
|
```
|
|
|
|
|
|
Currently the example that we are working on is ```SedovBlast_3D```. To run this, you need to modify the ```run.sh``` script to take ```swift``` -> ```swift_cuda```. Then, the jobscript for Piz Daint is:
|
|
|
|
|
|
\ No newline at end of file |
|
|
Currently the example that we are working on is ```SedovBlast_3D```. To run this, you need to modify the ```run.sh``` script to take ```swift``` -> ```swift_cuda``` and add the following lines:
|
|
|
|
|
|
```
|
|
|
#!/bin/bash -l
|
|
|
#SBATCH --job-name=job
|
|
|
#SBATCH --time=01:00:00
|
|
|
#SBATCH --nodes=1
|
|
|
#SBATCH --ntasks-per-core=1
|
|
|
#SBATCH --ntasks-per-node=1
|
|
|
#SBATCH --cpus-per-task=12
|
|
|
#SBATCH --partition=normal
|
|
|
#SBATCH --constraint=gpu
|
|
|
#SBATCH --res=eurohack
|
|
|
```
|
|
|
|
|
|
Then you can run with `sbatch run.sh` |
|
|
\ No newline at end of file |