Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ActEV
diva_evaluation_cli
Commits
586719b1
Commit
586719b1
authored
Nov 20, 2018
by
Alexandre Boyer
Browse files
new attempt to fix monitor
parent
d4ac5e1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
diva_evaluation_cli/bin/private_src/implementation/resources_monitoring/monitor.py
View file @
586719b1
...
...
@@ -106,7 +106,7 @@ class Monitor():
# Try to retrieve the main_process
try
:
process
=
psutil
.
Process
(
self
.
main_process
_
pid
)
process
=
psutil
.
Process
(
self
.
main_process
.
pid
)
# Load the NVIDIA handler
with
NvmlHandler
()
as
nvml_h
:
...
...
@@ -131,4 +131,4 @@ class Monitor():
except
Exception
as
e
:
logger
.
warning
(
e
)
logger
.
info
(
'PID {} not available for monitoring'
.
format
(
self
.
main_process
_
pid
))
logger
.
info
(
'PID {} not available for monitoring'
.
format
(
self
.
main_process
.
pid
))
Write
Preview
Supports
Markdown
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