qsub jobsubmission with python argparse

Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
without qsub, I run the job as:
python3 ./runspr_new2.py --SCF
where the --SCF is defined in runspr_new2.py:
parser = argparse.ArgumentParser(description="generate and run sprkkr input",
formatter_class=RawTextHelpFormatter)
parser.add_argument("--SCF", help="SCF Calculation; SCF.inp must pre-exist", action='store_true')
Now, I defined the qsub code as:
#!/bin/bash
#PBS -l nodes=1:ppn=24
#PBS -q default
#PBS -N FeRh_RUN
#PBS -e test2.err
#PBS -o test2.out
#PBS -l walltime=10:00:00
echo PBS JOB id is $PBS_JOBID
echo PBS_NODEFILE is $PBS_NODEFILE
echo PBS_QUEUE is $PBS_QUEUE
cat $PBS_NODEFILE
export I_MPI_FABRICS=shm:tmi
cd $PBS_O_WORKDIR
#python3 /runspr_new2.py --SCF # giving argparse option directly
#python3 /runspr_new2.py # giving argparse option in qsub -F "--SCF" as in documentation
#bash runscf.sh # define another bash with the python3 line
Unfortunately, none of them is working.
Also, it is not writing anything in test2.err.
So, is there any way to submit jobs using qsub with argparse argument?
python batch-jobs qsub
add a comment |Â
up vote
0
down vote
favorite
without qsub, I run the job as:
python3 ./runspr_new2.py --SCF
where the --SCF is defined in runspr_new2.py:
parser = argparse.ArgumentParser(description="generate and run sprkkr input",
formatter_class=RawTextHelpFormatter)
parser.add_argument("--SCF", help="SCF Calculation; SCF.inp must pre-exist", action='store_true')
Now, I defined the qsub code as:
#!/bin/bash
#PBS -l nodes=1:ppn=24
#PBS -q default
#PBS -N FeRh_RUN
#PBS -e test2.err
#PBS -o test2.out
#PBS -l walltime=10:00:00
echo PBS JOB id is $PBS_JOBID
echo PBS_NODEFILE is $PBS_NODEFILE
echo PBS_QUEUE is $PBS_QUEUE
cat $PBS_NODEFILE
export I_MPI_FABRICS=shm:tmi
cd $PBS_O_WORKDIR
#python3 /runspr_new2.py --SCF # giving argparse option directly
#python3 /runspr_new2.py # giving argparse option in qsub -F "--SCF" as in documentation
#bash runscf.sh # define another bash with the python3 line
Unfortunately, none of them is working.
Also, it is not writing anything in test2.err.
So, is there any way to submit jobs using qsub with argparse argument?
python batch-jobs qsub
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
without qsub, I run the job as:
python3 ./runspr_new2.py --SCF
where the --SCF is defined in runspr_new2.py:
parser = argparse.ArgumentParser(description="generate and run sprkkr input",
formatter_class=RawTextHelpFormatter)
parser.add_argument("--SCF", help="SCF Calculation; SCF.inp must pre-exist", action='store_true')
Now, I defined the qsub code as:
#!/bin/bash
#PBS -l nodes=1:ppn=24
#PBS -q default
#PBS -N FeRh_RUN
#PBS -e test2.err
#PBS -o test2.out
#PBS -l walltime=10:00:00
echo PBS JOB id is $PBS_JOBID
echo PBS_NODEFILE is $PBS_NODEFILE
echo PBS_QUEUE is $PBS_QUEUE
cat $PBS_NODEFILE
export I_MPI_FABRICS=shm:tmi
cd $PBS_O_WORKDIR
#python3 /runspr_new2.py --SCF # giving argparse option directly
#python3 /runspr_new2.py # giving argparse option in qsub -F "--SCF" as in documentation
#bash runscf.sh # define another bash with the python3 line
Unfortunately, none of them is working.
Also, it is not writing anything in test2.err.
So, is there any way to submit jobs using qsub with argparse argument?
python batch-jobs qsub
without qsub, I run the job as:
python3 ./runspr_new2.py --SCF
where the --SCF is defined in runspr_new2.py:
parser = argparse.ArgumentParser(description="generate and run sprkkr input",
formatter_class=RawTextHelpFormatter)
parser.add_argument("--SCF", help="SCF Calculation; SCF.inp must pre-exist", action='store_true')
Now, I defined the qsub code as:
#!/bin/bash
#PBS -l nodes=1:ppn=24
#PBS -q default
#PBS -N FeRh_RUN
#PBS -e test2.err
#PBS -o test2.out
#PBS -l walltime=10:00:00
echo PBS JOB id is $PBS_JOBID
echo PBS_NODEFILE is $PBS_NODEFILE
echo PBS_QUEUE is $PBS_QUEUE
cat $PBS_NODEFILE
export I_MPI_FABRICS=shm:tmi
cd $PBS_O_WORKDIR
#python3 /runspr_new2.py --SCF # giving argparse option directly
#python3 /runspr_new2.py # giving argparse option in qsub -F "--SCF" as in documentation
#bash runscf.sh # define another bash with the python3 line
Unfortunately, none of them is working.
Also, it is not writing anything in test2.err.
So, is there any way to submit jobs using qsub with argparse argument?
python batch-jobs qsub
asked May 17 at 11:59
BaRud
5232715
5232715
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f444350%2fqsub-jobsubmission-with-python-argparse%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password