mirror of
https://github.com/RRZE-HPC/OSACA.git
synced 2025-12-16 00:50:06 +01:00
fixed incompatibilty to py3.6
This commit is contained in:
@@ -351,9 +351,9 @@ class Frontend(object):
|
||||
lcd_text = (
|
||||
"-------------------------------- WARNING: LCD analysis timed out "
|
||||
"-------------------------------\n While searching for all dependency chains"
|
||||
" the analysis timed out.\n Decrease the number of instructions or set the "
|
||||
"timeout threshold with --lcd-timeout.\n See --help for more "
|
||||
"information.\n" + dashed_line
|
||||
" the analysis timed out and might be\n incomplete. Decrease the number of "
|
||||
"instructions or set the timeout threshold\n with --lcd-timeout. See --help"
|
||||
" for more information.\n" + dashed_line
|
||||
)
|
||||
warnings = "\n"
|
||||
warnings += lcd_text if lcd_warning else ""
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import copy
|
||||
import os
|
||||
import signal
|
||||
import time
|
||||
from itertools import chain
|
||||
from multiprocessing import Manager, Process, cpu_count
|
||||
@@ -140,7 +142,9 @@ class KernelDG(nx.DiGraph):
|
||||
# terminate running processes
|
||||
for p in processes:
|
||||
if p.is_alive():
|
||||
p.kill()
|
||||
# Python 3.6 does not support Process.kill().
|
||||
# Can be changed to `p.kill()` after EoL (01/22) of Py3.6
|
||||
os.kill(p.pid, signal.SIGKILL)
|
||||
p.join()
|
||||
all_paths = list(all_paths)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user