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
@@ -377,6 +377,28 @@ As before, we need a batch script to run the code. There are no GPUs on the logi
377
377
# Run your Python script
378
378
python add-list.py
379
379
380
+
.. tab:: C3SE: batch
381
+
382
+
Batch script, "add-list.sh", to run the same GPU Python script (the numba code, "add-list.py") at Alvis. As before, submit with "sbatch add-list.sh" (assuming you called the batch script thus - change to fit your own naming style).
383
+
384
+
.. code::block::
385
+
386
+
#!/bin/bash
387
+
# Remember to change this to your own project ID after the course!
388
+
#SBATCH -A naiss2025-22-934
389
+
# We are asking for 10 minutes
390
+
#SBATCH -t 00:10:00
391
+
#SBATCH -p alvis
392
+
#SBATCH -N 1 --gpus-per-node=T4:2
393
+
# Writing output and error files
394
+
#SBATCH --output=output%J.out
395
+
#SBATCH --error=error%J.error
396
+
397
+
# Load any needed GPU modules and any prerequisites - on Alvis this module loads all
Batch script, "add-list.sh", to run the same GPU Python script (the numba code, "add-list.py") at Tetralith. As before, submit with "sbatch add-list.sh" (assuming you called the batch script thus - change to fit your own naming style).
@@ -394,17 +416,17 @@ As before, we need a batch script to run the code. There are no GPUs on the logi
394
416
395
417
# Remove any loaded modules and load the ones we need
0 commit comments