I want to run a python script which is parsed from a bash file. When I try to run it, I get errors everywhere and I do not know what the issue could be. Any help?
The bash script (run_dmd_atomic.sh) looks like this:
#!/bin/bash
BATCH_SIZE=${1}
CODE_LENGTH=${2}
EPOCHS=${3}
SP=${4}
A1=${5}
A2=${6}
A3=${7}
srun python3 dmd_solver.py \
--batch_size ${BATCH_SIZE} \
--code_length ${CODE_LENGTH} \
--epochs ${EPOCHS} \
--sp ${SP} \
--a1 ${A1} \
--a2 ${A2} \
--a3 ${A3} \
The error I get is:
[tmarta@eu-login-09-ng training]$ ./run_dmd_atomic.sh
./run_dmd_atomic.sh: line 20: srun: command not found