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
42e7e2ee
Unverified
Commit
42e7e2ee
authored
Apr 17, 2022
by
Qiza-lyhm
Committed by
GitHub
Apr 17, 2022
Browse files
[Fix] Add MLU kernels to be compiled (#1885)
- Add MLU operator kernels.
parent
03b38a46
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
setup.py
setup.py
+2
-1
No files found.
setup.py
View file @
42e7e2ee
...
...
@@ -301,7 +301,8 @@ def get_extensions():
extra_compile_args
[
'cncc'
]
=
[
mlu_args
]
if
mlu_args
else
[]
op_files
=
glob
.
glob
(
'./mmcv/ops/csrc/pytorch/*.cpp'
)
+
\
glob
.
glob
(
'./mmcv/ops/csrc/pytorch/cpu/*.cpp'
)
+
\
glob
.
glob
(
'./mmcv/ops/csrc/pytorch/mlu/*.cpp'
)
glob
.
glob
(
'./mmcv/ops/csrc/pytorch/mlu/*.cpp'
)
+
\
glob
.
glob
(
'./mmcv/ops/csrc/common/mlu/*.mlu'
)
extension
=
MLUExtension
include_dirs
.
append
(
os
.
path
.
abspath
(
'./mmcv/ops/csrc/common'
))
include_dirs
.
append
(
os
.
path
.
abspath
(
'./mmcv/ops/csrc/common/mlu'
))
...
...
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