Skip to content

Commit

Permalink
fix tensorrt test failed with pytorch 1.8+ (#1464)
Browse files Browse the repository at this point in the history
* fix tensorrt test failed with pytorch 1.8+

* add comment
  • Loading branch information
twmht authored Dec 10, 2021
1 parent 222f380 commit 48f44b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 48f44b6

Please sign in to comment.