qsub jobsubmission with python argparse

The name of the pictureThe name of the pictureThe name of the pictureClash 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?







share|improve this question























    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?







    share|improve this question





















      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?







      share|improve this question











      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?









      share|improve this question










      share|improve this question




      share|improve this question









      asked May 17 at 11:59









      BaRud

      5232715




      5232715

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );








           

          draft saved


          draft discarded


















          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



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes










           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          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













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Displaying single band from multi-band raster using QGIS

          How many registers does an x86_64 CPU actually have?