This commit is contained in:
guanjihuan 2025-03-06 07:02:40 +08:00
parent 9cad8f4a9d
commit 60b9410584
6 changed files with 4 additions and 9 deletions

View File

@ -1,5 +1,4 @@
#!/bin/sh
#PBS -N task
#PBS -l nodes=1:ppn=1
#PBS -q bigmem
python a.py

View File

@ -29,8 +29,6 @@ for parameter_str in parameter_str_array:
with open('a'+str(index)+'.py', 'w') as f: # 写入
f.write(content)
# 以下处理任务上传文件
old_file = 'a.sh'
new_file = 'a'+str(index)+'.sh'
@ -50,7 +48,5 @@ for parameter_str in parameter_str_array:
with open('a'+str(index)+'.sh', 'w') as f: # 写入
f.write(content)
# 提交任务
os.system('qsub '+new_file)