Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
seminar-breakout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shashank Suhas
seminar-breakout
Commits
f20e411a
Commit
f20e411a
authored
Nov 27, 2017
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mask sigint in GPU util process (#516)
parent
5b2bf238
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tensorpack/callbacks/prof.py
tensorpack/callbacks/prof.py
+2
-2
No files found.
tensorpack/callbacks/prof.py
View file @
f20e411a
...
@@ -13,7 +13,7 @@ from tensorflow.python.client import timeline
...
@@ -13,7 +13,7 @@ from tensorflow.python.client import timeline
from
.base
import
Callback
from
.base
import
Callback
from
..utils
import
logger
from
..utils
import
logger
from
..utils.concurrency
import
ensure_proc_terminate
,
subproc_call
from
..utils.concurrency
import
ensure_proc_terminate
,
subproc_call
,
start_proc_mask_signal
from
..utils.gpu
import
get_nr_gpu
from
..utils.gpu
import
get_nr_gpu
__all__
=
[
'GPUUtilizationTracker'
,
'GraphProfiler'
,
'PeakMemoryTracker'
]
__all__
=
[
'GPUUtilizationTracker'
,
'GraphProfiler'
,
'PeakMemoryTracker'
]
...
@@ -59,7 +59,7 @@ class GPUUtilizationTracker(Callback):
...
@@ -59,7 +59,7 @@ class GPUUtilizationTracker(Callback):
self
.
_proc
=
mp
.
Process
(
target
=
self
.
worker
,
args
=
(
self
.
_proc
=
mp
.
Process
(
target
=
self
.
worker
,
args
=
(
self
.
_evt
,
self
.
_queue
,
self
.
_stop_evt
))
self
.
_evt
,
self
.
_queue
,
self
.
_stop_evt
))
ensure_proc_terminate
(
self
.
_proc
)
ensure_proc_terminate
(
self
.
_proc
)
s
elf
.
_proc
.
start
(
)
s
tart_proc_mask_signal
(
self
.
_proc
)
def
_before_epoch
(
self
):
def
_before_epoch
(
self
):
self
.
_evt
.
set
()
self
.
_evt
.
set
()
...
...
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