我有25个处理器在一个计算节点。你知道吗
我有一个python主脚本a)在循环中运行3)在每个循环中执行20 tasks
,每个循环也分布在25个处理器中。你知道吗
Python主脚本A
Lots of calculations
os.system("csh subtask.csh; wait")
Lots of calculations
Return to beginning of loop
其中,subtask.csh
属于这种类型:
./model -h 1 controlfile
./model -h 2 controlfile
./model -h 3 controlfile
./model -h 4 controlfile
./model -h 5 controlfile
...
./model -h 20 controlfile
但是,通过这种方式,我的程序不会等待subtask.csh
完成。你知道吗
我怎样才能让它等待?你知道吗
你能试试这个吗??你知道吗
相关问题 更多 >
编程相关推荐