Example PBS qsub Command Lines
All of the following examples show how to submit Linux maxwell jobs on PBS, but similar command lines and job scripts will work for all Ansys Electromagnetics products. Most of the following examples are PBS "Single-node jobs." The last example is a PBS "multi-node jobs"; this examples demonstrate 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/AnsysEM/v242/ansysedt -ng -BatchSolve
~/projects/OptimTee.aedt
Serial job that needs a minimum of four GB 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/AnsysEM/v242/ansysedt -ng -BatchSolve
~/projects/OptimTee.aedt
Multi-processing job using four cores:
qsub ~/pbs_scripts/OptimTee.sh
Job Script File:
#!/bin/sh
#PBS -l ncpus=4
/opt/AnsysEM/v242/ansysedt -ng -BatchSolve -batchoptions "'Maxwell3D/Preferences/NumberOfProcessors'=4"
~/projects/OptimTee.aedt
- The
#PBS -l ncpus=4directive indicates that four cores or CPUs are allocated to this job. - The
-batchoptionsoption indicates that Maxwell should use four cores for multiprocessing.
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/AnsysEM/v242/ansysedt -ng -BatchSolve -Distributed
-machinelist num=4
~/projects/OptimTee.aedt
- The
#PBS -l ncpus=4directive indicates that four cores or CPUs are allocated to this job. - The
-Distributedoption 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 four engines. The-Distributedoption may now have additional options, such asincludetypes=xxx,excludetypes=xxx,maxlevels=n, andnumlevel1=n, where n indicates and integer, and xxx indicates a list of distribution types or"default".
Distributed processing and multi-processing job using eight cores on two nodes, running four engines (two per node) with two cores for multi-processing:
qsub ~/pbs_scripts/OptimTee.sh
Job Script File:
#!/bin/sh
#PBS -l nodes=2:ppn=2:cpp=2#excl
/opt/AnsysEM/v242/ansysedt -ng -BatchSolve -Distributed
-machinelist num=4 -batchoptions
~/projects/OptimTee.aedt
- The PBS directive
#PBS -l nodes=2:ppn=1:cpp=2#sharedindicates 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=4option indicates that this is a DSO job and that a total of four engines will be started.
Related Topics
Integration with PBS (Portable Batch System) Professional from Altair Engineering