|
|
@@ -34,11 +34,11 @@ def main():
|
|
34
|
34
|
r_time = time.ctime(time.time())
|
|
35
|
35
|
f.write('exectue is successfully starts at ' + str(r_time) + '\n')
|
|
36
|
36
|
f.close()
|
|
37
|
|
- cmd_list = ['docker run --rm --name extract_1 --gpus '"device=0"' -v /dev:/dev -v /home/mc365/sources:/sources -v /hdd:/hdd ellishuntingmoon/mailsys:0.4 python3 /sources/extract_01.py ' + id + '/ >> /dev/null', 'echo ext_1 start']
|
|
|
37
|
+ cmd_list = ['docker run --rm --name extract_1 --gpus '"device=0"' -v /dev:/dev -v /home/mc365/sources:/sources -v /hdd:/hdd ellishuntingmoon/mailsys:0.5 python3 /sources/extract_01.py ' + id + '/ >> /dev/null', 'echo ext_1 start']
|
|
38
|
38
|
for index in range(0, len(cmd_list)):
|
|
39
|
39
|
thread_list.append(threading.Thread(target=cmd_run,args=(index,cmd_list)))
|
|
40
|
40
|
thread_list[index].start()
|
|
41
|
|
- os.system('docker run --rm --name extract_2 --gpus '"device=1"' -v /dev:/dev -v /home/mc365/sources:/sources -v /hdd:/hdd ellishuntingmoon/mailsys:0.4 python3 /sources/extract_02.py ' + id + '/ >> /dev/null')
|
|
|
41
|
+ os.system('docker run --rm --name extract_2 --gpus '"device=1"' -v /dev:/dev -v /home/mc365/sources:/sources -v /hdd:/hdd ellishuntingmoon/mailsys:0.5 python3 /sources/extract_02.py ' + id + '/ >> /dev/null')
|
|
42
|
42
|
f = open(file, 'at')
|
|
43
|
43
|
r_time = time.ctime(time.time())
|
|
44
|
44
|
f.write('exectue is successfully ends at ' + str(r_time) + '\n')
|
|
|
@@ -50,7 +50,7 @@ def main():
|
|
50
|
50
|
f.write('global coordinate successfully starts at ' + str(r_time) + '\n')
|
|
51
|
51
|
f.close()
|
|
52
|
52
|
#FIXME: change coordinate_g.py when IMU sensor works
|
|
53
|
|
- os.system('docker run --rm --name coordinate --gpus '"device=1"' -v /dev:/dev -v /home/mc365/sources:/sources -v /hdd:/hdd ellishuntingmoon/mailsys:0.4 python3 /sources/coordinate_g.py ' + id + '/ >> /dev/null')
|
|
|
53
|
+ os.system('docker run --rm --name coordinate --gpus '"device=1"' -v /dev:/dev -v /home/mc365/sources:/sources -v /hdd:/hdd ellishuntingmoon/mailsys:0.5 python3 /sources/coordinate_g.py ' + id + '/ >> /dev/null')
|
|
54
|
54
|
f = open(file, 'at')
|
|
55
|
55
|
r_time = time.ctime(time.time())
|
|
56
|
56
|
f.write('global coordinate successfully ends at ' + str(r_time) + '\n')
|
|
|
@@ -63,7 +63,7 @@ def main():
|
|
63
|
63
|
f.write('kpi successfully starts at ' + str(r_time) + '\n')
|
|
64
|
64
|
f.close()
|
|
65
|
65
|
#FIXME: change coordinate_g.py when IMU sensor works and get generic optimizer for DBSCAN
|
|
66
|
|
- os.system('docker run --rm --name kpi --gpus '"device=1"' -v /dev:/dev -v /home/mc365/sources:/sources -v /hdd:/hdd ellishuntingmoon/mailsys:0.4 python3 /sources/kpi.py ' + id + '/ >> /dev/null')
|
|
|
66
|
+ os.system('docker run --rm --name kpi --gpus '"device=1"' -v /dev:/dev -v /home/mc365/sources:/sources -v /hdd:/hdd ellishuntingmoon/mailsys:0.5 python3 /sources/kpi.py ' + id + '/ >> /dev/null')
|
|
67
|
67
|
f = open(file, 'at')
|
|
68
|
68
|
r_time = time.ctime(time.time())
|
|
69
|
69
|
f.write('kpi successfully ends at ' + str(r_time) + '\n')
|