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
OpenDAS
MMCV
Commits
eaf25af6
Unverified
Commit
eaf25af6
authored
Dec 01, 2020
by
Jintao Lin
Committed by
GitHub
Dec 01, 2020
Browse files
use CUDA_HOME from parrots_wrapper (#678)
parent
d2ca6ceb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
mmcv/utils/env.py
mmcv/utils/env.py
+1
-1
No files found.
mmcv/utils/env.py
View file @
eaf25af6
...
@@ -48,7 +48,7 @@ def collect_env():
...
@@ -48,7 +48,7 @@ def collect_env():
for
name
,
device_ids
in
devices
.
items
():
for
name
,
device_ids
in
devices
.
items
():
env_info
[
'GPU '
+
','
.
join
(
device_ids
)]
=
name
env_info
[
'GPU '
+
','
.
join
(
device_ids
)]
=
name
from
torch
.utils.
cpp_extension
import
CUDA_HOME
from
mmcv
.utils.
parrots_wrapper
import
CUDA_HOME
env_info
[
'CUDA_HOME'
]
=
CUDA_HOME
env_info
[
'CUDA_HOME'
]
=
CUDA_HOME
if
CUDA_HOME
is
not
None
and
osp
.
isdir
(
CUDA_HOME
):
if
CUDA_HOME
is
not
None
and
osp
.
isdir
(
CUDA_HOME
):
...
...
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