22
33Specifying the ` --environment ` option to the Slurm command (e.g., ` srun ` or ` salloc ` ) will make it run inside the EDF environment:
44
5- ``` bash title="Specifying EDF with an absolute path"
5+ ``` console title="EDF with an absolute path"
66$ srun --environment=$SCRATCH /edf/debian.toml cat /etc/os-release
77PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
88NAME="Debian GNU/Linux"
@@ -13,28 +13,26 @@ VERSION_ID="12"
1313` --environment ` can be a relative path from the current working directory (i.e., where the Slurm command is executed).
1414A relative path should be prepended by ` ./ ` :
1515
16- !!! example "Specifying EDF with a relative path"
17- ```bash
18- $ ls
19- debian.toml
16+ ``` console title="EDF with a relative path"
17+ $ ls
18+ debian.toml
2019
21- $ srun --environment=./debian.toml cat /etc/os-release
22- PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
23- NAME="Debian GNU/Linux"
24- VERSION_ID="12"
25- ...
26- ```
20+ $ srun --environment=./debian.toml cat /etc/os-release
21+ PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
22+ NAME="Debian GNU/Linux"
23+ VERSION_ID="12"
24+ ...
25+ ```
2726
2827If an EDF is located in the [ EDF search path] [ ref-ce-edf-search-path ] , ` --environment ` also accepts the EDF filename without the ` .toml ` extension:
2928
30- !!! example "Specifying EDF in the default search path"
31- ```bash
32- $ srun --environment=debian cat /etc/os-release
33- PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
34- NAME="Debian GNU/Linux"
35- VERSION_ID="12"
36- ...
37- ```
29+ ``` console title="EDF in the default search path"
30+ $ srun --environment=debian cat /etc/os-release
31+ PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
32+ NAME="Debian GNU/Linux"
33+ VERSION_ID="12"
34+ ...
35+ ```
3836
3937### Use from batch scripts
4038
0 commit comments