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
e16260c9
Unverified
Commit
e16260c9
authored
Dec 03, 2021
by
MissPenguin
Committed by
GitHub
Dec 03, 2021
Browse files
Merge pull request #4823 from ronny1996/fix_rocm
Fix bug for rocm
parents
44ba6030
d4c0517f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
tools/infer/utility.py
tools/infer/utility.py
+4
-1
No files found.
tools/infer/utility.py
View file @
e16260c9
...
...
@@ -311,7 +311,10 @@ def create_predictor(args, mode, logger):
def
get_infer_gpuid
():
if
not
paddle
.
fluid
.
core
.
is_compiled_with_rocm
():
cmd
=
"env | grep CUDA_VISIBLE_DEVICES"
else
:
cmd
=
"env | grep HIP_VISIBLE_DEVICES"
env_cuda
=
os
.
popen
(
cmd
).
readlines
()
if
len
(
env_cuda
)
==
0
:
return
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