Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tic
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenyuanbo
tic
Commits
01e53935
Commit
01e53935
authored
Sep 27, 2019
by
Haozheng Fan
Committed by
Tianqi Chen
Sep 26, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hide psutil (#4013)
parent
d7998d39
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
python/tvm/rpc/server.py
+1
-1
No files found.
python/tvm/rpc/server.py
View file @
01e53935
...
@@ -39,7 +39,6 @@ import subprocess
...
@@ -39,7 +39,6 @@ import subprocess
import
time
import
time
import
sys
import
sys
import
signal
import
signal
import
psutil
from
.._ffi.function
import
register_func
from
.._ffi.function
import
register_func
from
.._ffi.base
import
py_str
from
.._ffi.base
import
py_str
...
@@ -211,6 +210,7 @@ def _listen_loop(sock, port, rpc_key, tracker_addr, load_library, custom_addr):
...
@@ -211,6 +210,7 @@ def _listen_loop(sock, port, rpc_key, tracker_addr, load_library, custom_addr):
server_proc
.
join
(
opts
.
get
(
"timeout"
,
None
))
server_proc
.
join
(
opts
.
get
(
"timeout"
,
None
))
if
server_proc
.
is_alive
():
if
server_proc
.
is_alive
():
logger
.
info
(
"Timeout in RPC session, kill.."
)
logger
.
info
(
"Timeout in RPC session, kill.."
)
import
psutil
parent
=
psutil
.
Process
(
server_proc
.
pid
)
parent
=
psutil
.
Process
(
server_proc
.
pid
)
# terminate worker childs
# terminate worker childs
for
child
in
parent
.
children
(
recursive
=
True
):
for
child
in
parent
.
children
(
recursive
=
True
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment