Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
one
spconv
Commits
85d77474
Commit
85d77474
authored
Jun 11, 2022
by
yan.yan
Browse files
fix thrust problem
parent
647927ce
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
CHANGELOG.md
CHANGELOG.md
+3
-0
spconv/csrc/sparse/all.py
spconv/csrc/sparse/all.py
+3
-3
version.txt
version.txt
+1
-1
No files found.
CHANGELOG.md
View file @
85d77474
# Changelog
## [2.1.22] - 2022-6-11
### Fixed
-
Fix thrust problem by adding -fvisibility=hidden
## [2.1.21] - 2021-12-9
### Added
...
...
spconv/csrc/sparse/all.py
View file @
85d77474
...
...
@@ -31,7 +31,7 @@ class CustomThrustLib(pccm.Class):
self
.
add_dependency
(
ThrustLib
)
# https://github.com/NVIDIA/thrust/issues/1401#issuecomment-806403746
if
compat
.
InLinux
:
self
.
build_meta
.
add_cflags
(
"nvcc"
,
"-Xcompiler"
,
"-f
no-gnu-unique
"
)
self
.
build_meta
.
add_cflags
(
"nvcc"
,
"-Xcompiler"
,
"-f
visibility=hidden
"
)
class
ThrustCustomAllocatorV2
(
pccm
.
Class
,
pccm
.
pybind
.
PybindClassMixin
):
...
...
@@ -566,7 +566,7 @@ class SpconvOps(pccm.Class):
}}
"""
code
.
add_dependency
(
ThrustLib
,
TensorViewKernel
)
code
.
add_dependency
(
Custom
ThrustLib
,
TensorViewKernel
)
code
.
add_param_class
(
"cudakers"
,
CudaCommonKernel
())
code
.
raw
(
f
"""
cudaStream_t stream_cu = reinterpret_cast<cudaStream_t>(stream);
...
...
@@ -614,7 +614,7 @@ class SpconvOps(pccm.Class):
}}
}}
"""
code
.
add_dependency
(
ThrustLib
,
TensorViewKernel
)
code
.
add_dependency
(
Custom
ThrustLib
,
TensorViewKernel
)
code
.
add_param_class
(
"cudakers"
,
CudaCommonKernel
())
code
.
raw
(
f
"""
ThrustCustomAllocatorV2 allocator{{alloc_func}};
...
...
version.txt
View file @
85d77474
2.1.21
\ No newline at end of file
2.1.22
\ No newline at end of file
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