I want to be able to easily change how many nodes
, ppn
, etc I submit to qsub
via script. That is, I want run somthing like this:
qsub script.sh --name=test_job --nodes=2 --ppn=2 --arg1=2
With a script like the following:
#/bin/bash
#PBS -N ${NAME}
#PBS -l nodes=${NODES}:ppn=${PPN},walltime=${WALLTIME}
#PBS -q ${QUEUE}
#PBS -m ${MAILOPTS}
#PBS -M ${EMAIL}
/some/command ${ARG1}
So, I want to be able to pass in arguments that both change the PBS environment as well as some that go to the executable itself.
I've tried using the -v
argument of qsub
:
qsub script.sh -v NAME=test_job,NODES=16,PPN=16,ARG1=2
But the job submitted with the name script.sh
and 1 node
, 1 ppn
.
Any ideas on a solution to this?