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
48f44b69
Unverified
Commit
48f44b69
authored
Dec 10, 2021
by
Ming-Hsuan-Tu
Committed by
GitHub
Dec 10, 2021
Browse files
fix tensorrt test failed with pytorch 1.8+ (#1464)
* fix tensorrt test failed with pytorch 1.8+ * add comment
parent
222f3807
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
setup.py
setup.py
+3
-0
No files found.
setup.py
View file @
48f44b69
...
...
@@ -161,6 +161,9 @@ def get_extensions():
define_macros
+=
[(
'MMCV_WITH_TRT'
,
None
)]
cuda_args
=
os
.
getenv
(
'MMCV_CUDA_ARGS'
)
extra_compile_args
[
'nvcc'
]
=
[
cuda_args
]
if
cuda_args
else
[]
# prevent cub/thrust conflict with other python library
# More context See issues #1454
extra_compile_args
[
'nvcc'
]
+=
[
'-Xcompiler=-fno-gnu-unique'
]
library_dirs
+=
library_paths
(
cuda
=
True
)
from
setuptools
import
Extension
...
...
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