update
This commit is contained in:
parent
0e8e7e1b75
commit
46e14fe0fe
8
2021.01.18_run_programs_sequentially/run_qsub/task_1.py
Normal file
8
2021.01.18_run_programs_sequentially/run_qsub/task_1.py
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
import time
|
||||||
|
import guan
|
||||||
|
print(guan.get_time())
|
||||||
|
time.sleep(60)
|
||||||
|
x = ['test_001']
|
||||||
|
guan.dump_data(x, filename='result_1')
|
||||||
|
print(guan.get_time())
|
||||||
|
guan.make_file('./complete_1.txt')
|
4
2021.01.18_run_programs_sequentially/run_qsub/task_1.sh
Normal file
4
2021.01.18_run_programs_sequentially/run_qsub/task_1.sh
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#PBS -N task_1
|
||||||
|
#PBS -l nodes=1:ppn=1
|
||||||
|
python task_1.py
|
4
2021.01.18_run_programs_sequentially/run_qsub/task_2.py
Normal file
4
2021.01.18_run_programs_sequentially/run_qsub/task_2.py
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
import guan
|
||||||
|
y = guan.load_data(filename='result_1')
|
||||||
|
guan.dump_data(y, filename='result_2')
|
||||||
|
print(guan.get_time())
|
4
2021.01.18_run_programs_sequentially/run_qsub/task_2.sh
Normal file
4
2021.01.18_run_programs_sequentially/run_qsub/task_2.sh
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#PBS -N task_2
|
||||||
|
#PBS -l nodes=1:ppn=1
|
||||||
|
python task_2.py
|
Loading…
x
Reference in New Issue
Block a user