Example PBS qsub Command Lines
All of the following examples show how to submit Linux hfss jobs on PBS, but similar command lines and job scripts will work for all Ansys EM products. Most of the following examples are PBS "Single-node jobs." The last example is a PBS "multi-node jobs"; this example demonstrates how to specify the allocation of threads, tasks and nodes to a job.
Serial job:
qsub ~/pbs_scripts/OptimTee.sh
Job Script File:
#!/bin/sh
/opt/ansys_inc/v252/AnsysEM/ansysedt -ng -BatchSolve
~/projects/OptimTee.aedt
Serial job that needs a minimum of 4GB memory and two hours of real (wallclock) time:
qsub ~/pbs_scripts/OptimTee.sh
Job Script File:
#!/bin/sh
#PBS -l walltime=2:00:00
#PBS -l mem=4gb
/opt/ansys_inc/v252/AnsysEM/ansysedt -ng -BatchSolve
~/projects/OptimTee.aedt
Multi-processing job using 4 cores:
qsub ~/pbs_scripts/OptimTee.sh
Job Script File:
#!/bin/sh
#PBS -l ncpus=4
/opt/ansys_inc/v252/AnsysEM/ansysedt -ng -BatchSolve
-batchoptions
-machinelist num=4
~/projects/OptimTee.aedt
- The #PBS -l ncpus=4 directive indicates that four cores or CPUs are allocated to this job.
- The -batchoptions option indicates that Ansys Electronics Desktop should use four cores for multi-processing.
Distributed processing job using 4 engines on a single host:
qsub ~/pbs_scripts/OptimTee.sh
Job Script File:
#!/bin/sh
#PBS -l ncpus=4
/opt/ansys_inc/v252/AnsysEM/ansysedt -ng -BatchSolve -Distributed -machinelist num=4
~/projects/OptimTee.aedt
- The #PBS -l ncpus=4 directive indicates that four cores or CPUs are allocated to this job.
- 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, excludetyeps=xxx, maxlevels=n, and numlevel1=n, where n indicates and integer, and xxx indicates a list of distribution types or "default".
Distributed processing and multi-processing job using 8 cores on two nodes, running 4 engines (two per node) with 2 cores for multi-processing:
qsub ~/pbs_scripts/OptimTee.sh
Job Script File:
#!/bin/sh
#PBS -l nodes=2:ppn=2:cpp=2#excl
/opt/ansys_inc/v252/AnsysEM/ansysedt -ng -BatchSolve -Distributed
-machinelist num=4 -batchoptions ~/projects/OptimTee.aedt
- The PBS directive #PBS -l nodes=2:ppn=1:cpp=2#shared indicates that two nodes are requested [2], two processes (engines) run on each node [ppn=2], and each process will use two cores [cpp=2]. The hosts allocated to this job may not be used for any other jobs while this job is running [#excl].
- The -machinelist num=4 option indicates that this is a DSO job and that a total of four engines will be started. This option is required for all batch jobs.