Add run script

This commit is contained in:
2025-03-30 12:24:35 +03:00
commit c5a6f9b59f
2 changed files with 32 additions and 0 deletions

21
README.md Normal file
View File

@@ -0,0 +1,21 @@
## Run kernel.cu file
Добавить задачу на запуск kernel.cu в очередь.
```bash
sbatch run.script
```
Узнать статус выполнения.
```bash
scontrol show jobid <jobid>
```
Отменить или завершить задачу досрочно.
```bash
scancel <jobid>
```
Подробнее [тут](https://github.com/DmitriyGubkovskiy/SCC-methodology).

11
run.script Normal file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
#SBATCH --nodes=1
#SBATCH -p tornado-k40
#SBATCH -t 00-00:20:00
#SBATCH -J cudaLab
#SBATCH -o cudaLab-%j.out
#SBATCH -e cudaLab-%j.err
module load compiler/gcc/11
module load nvidia/cuda/11.6u2
nvcc -arch=sm_35 --run kernel.cu