Skip to content

Commit 2f5ef77

Browse files
committed
Change *.job to use Guix instead of 'module' + Anaconda.
1 parent 5fa085c commit 2f5ef77

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

plot.job

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/bin/sh
22
############## This section states the requirements the job requires:
33
#SBATCH --job-name=re2015p
44
#SBATCH --time 15:00
@@ -8,10 +8,9 @@
88
#SBATCH -o logs/log.out
99
############## Here starts the actual UNIX commands and payload:
1010

11-
module purge
12-
module load anaconda
13-
14-
srun python plot.py
11+
exec guix time-machine -C channels.scm -- \
12+
shell -m manifest.scm --pure -- \
13+
srun python plot.py
1514

1615
# Make sure to edit according to your needs, especially:
1716
# - Working directory (under a "SBATCH" line)

simulation.job

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
1-
#!/bin/bash
1+
#!/bin/sh
22
############## This section states the requirements the job requires:
33
#SBATCH --job-name=rec2015
44
#SBATCH --time 3:00:00
55
#SBATCH -c 1
66
#SBATCH --mem=70000MB
77
#SBATCH --ntasks=1
8-
#SBATCH --array=0-9999
8+
###SBATCH --array=0-9999 # FIXME: not working with slurm@22.05
99
#SBATCH -o logs/log.out
1010
############## Here starts the actual UNIX commands and payload:
1111

12-
module purge
13-
module load anaconda
14-
15-
srun python simulation.py $SLURM_ARRAY_TASK_ID
12+
exec guix time-machine -C channels.scm -- \
13+
shell -m manifest.scm --pure -- \
14+
srun python simulation.py $SLURM_ARRAY_TASK_ID
1615

1716
# Make sure to edit according to your needs, especially:
1817
# - Working directory (under a "SBATCH" line)

0 commit comments

Comments
 (0)