• 易迪拓培训,专注于微波、射频、天线设计工程师的培养
首页 > HFSS > HFSS help > Example SGE qsub Command Lines

HFSS15: Example SGE qsub Command Lines

录入:edatop.com     点击:

All of the following examples show how to submit Linux HFSS jobs on SGE, but similar command lines will work for all Ansoft products.

Serial job using command line:

qsub -b y /opt/Ansoft/HFSS14.0/hfss14/hfss -ng -BatchSolve
~/projects/OptimTee.hfss

• 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/Ansoft/HFSS14.0/hfss14/hfss
-ng -BatchSolve ~/projects/OptimTee.hfss

• 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/Ansoft/HFSS14.0/hfss14/hfss -ng -BatchSolve
~/projects/OptimTee.hfss

• 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/Ansoft/HFSS14.0/hfss14/hfss
-ng -BatchSolve -Distributed ~/projects/OptimTee.hfss

• 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 -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.

HFSS 学习培训课程套装,专家讲解,视频教学,帮助您全面系统地学习掌握HFSS

上一篇:Example LSF bsub Command Lines
下一篇:Example of a More Complex Cost Function

HFSS视频培训课程推荐详情>>
HFSS教程推荐

  网站地图