我使用的工具可以在SGE网格上生成并行作业。当电网接近容量时,一些电网作业会启动,但其他作业不会。这导致了与该工具截然不同的结果,具体取决于开始的实际作业数。
那么,我如何让SGE排队,直到所有网格插槽都可用,然后一次启动所有作业呢?
请注意,网格插槽通常会在多台机器上可用。
来自qsub
手册页:
-tcon y[es]|n[o]
Available for qsub only.
Can be used in conjunction with array jobs (see -t option) to
submit a concurrent array job.
For a concurrent array job either all tasks can be started in one
scheduling run or the whole job will stay pending.
将其包含在的工作脚本中
#$ -tcon y