Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
paddle_dbnet
Commits
4fb9b76f
Commit
4fb9b76f
authored
Nov 25, 2021
by
LDOUBLEV
Browse files
fix get gpu id
parent
a09bcf5c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
+0
-4
tools/infer/utility.py
tools/infer/utility.py
+0
-4
No files found.
tools/infer/utility.py
View file @
4fb9b76f
...
...
@@ -311,10 +311,6 @@ def create_predictor(args, mode, logger):
def
get_infer_gpuid
():
#cmd = "nvidia-smi"
#res = os.popen(cmd).readlines()
#if len(res) == 0:
# return None
cmd
=
"env | grep CUDA_VISIBLE_DEVICES"
env_cuda
=
os
.
popen
(
cmd
).
readlines
()
if
len
(
env_cuda
)
==
0
:
...
...
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