问题描述
关于PBS的一些简短而愚蠢的问题:
some short and probably stupid questions about PBS:
1-我使用
qsub job_file
是否可以在作业文件中提交(子)作业?
is it possible to submit a (sub)job inside a job file?
2-我有以下脚本:
qsub job_a
qsub job_b
对于启动job_b,最好在job_a的结果完成之前完成.是否可以设置某种障碍或其他解决方法,以便在job_a完成之前不启动job_b?
For launching job_b, it would be great to have before the results of job_a finished. Is it possible to put some kind of barrier or some otehr workaround so job_b is not launched until job_a finished?
谢谢
推荐答案
第一个问题的答案:
通常,只允许您从运行PBS服务器的主机提交作业,但这取决于PBS系统的设置.
Typically you're only allowed to submit jobs from the host where the PBS server is running, but it depends how your PBS system is set up.
回答第二个问题:
您可以使用依赖项.在qsub文档中了解有关-W选项的信息.这是一个bash脚本示例:
You can use dependencies. Read about the -W option in the qsub documentation. Here's an example bash script:
dependency_id=$(qsub job_a)
qsub -W depend=afterok:$dependency_id job_b
job_b将在job_a成功完成后开始.
job_b will start after job_a has finished successfully.
这篇关于PBS编程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!