Example SGE qsub Command Lines
All of the following examples show how to submit Linux HFSS jobs on SGE, but similar command lines will work for all Ansys Electromagnetics products.
Serial job using command line:
qsub -b y /opt/AnsysEM/v242/Linux64/ansysedt -ng -BatchSolve
~/projects/OptimTee.aedt
- The -b y option indicates that hfss is launched directly from the command line, instead of using a script.
- No queue is specified, so the default queue will be used.
Serial job with a hard runtime limit of 15 minutes:
qsub -b y -l h_rt=00:15:00 /opt/AnsysEM/v242/Linux64/ansysedt
-ng -BatchSolve ~/projects/OptimTee.aedt
- The -l h_rt=00:15:00 option indicates that this job has a "hard" runtime limit of 15 minutes.
Serial job using a script, with a runtime limit specified in the script:
qsub ~/sge/scripts/OptimTee.csh
- The -b y option is absent, so the script ~/sge/scripts/OptimTee.csh will be run when the job starts.
- The script file OptimTee.csh may contain SGE directives in addition to the command(s) to run. In this example, a directive with a hard runtime limit if 15 minutes is included in the script.
Script file contents:
#!/bin/csh
#$ -l h_rt=00:15:00
/opt/AnsysEM/v2421/Linux64/ansysedt -ng -BatchSolve
~/projects/OptimTee.aedt
- The SGE directive #$ -l h_rt=00:15:00 is equivalent to including -l h_rt=00:15:00 on the qsub command line.
Distributed processing job using 4 engines:
qsub -b y -pe pe1 4 /opt/AnsysEM/v2421/Linux64/ansysedt
-ng -BatchSolve -Distributed -machinelist num=4 ~/projects/OptimTee.aedt
- The -b y option indicates that hfss is launched directly from the command line, instead of using a script.
- The -pe pe1 4 command_line option indicates that this is a parallel job running under the pe1 parallel environment, and that 4 cores or processors are allocated to this parallel job.
- The "-machinelist num=n" option is now required for batch jobs.
- The -Distributed option indicates that this is a DSO job, so that multiple engines will be started. Because 4 cores are allocated to the job, the job will run 4 engines. The -Distributed option may now have additional options, such as includetypes=xxx, excludetypes=xxx, maxlevels=n, and numlevel1=n, where n indicates and integer, and xxx indicates a list of distribution types or "default".