This repository has been archived by the owner on Mar 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 757
device_reference not stripped before passing values to placeholder actors in some cases #1178
Labels
type: bug: functional
Does not work as intended.
Comments
Compiler Explorer link: https://www.godbolt.org/z/-8gpEp |
alliepiper
added a commit
to alliepiper/thrust
that referenced
this issue
Jul 16, 2020
Fixes and adds regression tests for NVIDIA#1178 & NVIDIA#1229.
alliepiper
added a commit
to alliepiper/thrust
that referenced
this issue
Jul 17, 2020
Fixes and adds regression tests for NVIDIA#1178 & NVIDIA#1229.
alliepiper
added a commit
to alliepiper/thrust
that referenced
this issue
Jul 17, 2020
Fixes and adds regression tests for NVIDIA#1178 & NVIDIA#1229.
alliepiper
added a commit
to alliepiper/thrust
that referenced
this issue
Jul 17, 2020
Fixes and adds regression tests for NVIDIA#1178 & NVIDIA#1229.
alliepiper
added a commit
to alliepiper/thrust
that referenced
this issue
Jul 24, 2020
Fixes and adds regression tests for NVIDIA#1178 & NVIDIA#1229.
alliepiper
added a commit
to alliepiper/thrust
that referenced
this issue
Jul 27, 2020
Fixes and adds regression tests for NVIDIA#1178 & NVIDIA#1229.
alliepiper
added a commit
to alliepiper/thrust
that referenced
this issue
Aug 3, 2020
Fixes and adds regression tests for NVIDIA#1178 & NVIDIA#1229.
alliepiper
added a commit
to alliepiper/thrust
that referenced
this issue
Aug 3, 2020
Fixes and adds regression tests for NVIDIA#1178 & NVIDIA#1229.
alliepiper
added a commit
to alliepiper/thrust
that referenced
this issue
Aug 7, 2020
Fixes and adds regression tests for NVIDIA#1178 & NVIDIA#1229.
alliepiper
added a commit
to alliepiper/thrust
that referenced
this issue
Aug 28, 2020
Fixes and adds regression tests for NVIDIA#1178 & NVIDIA#1229.
Fixed in #1237. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I've faced a bug that I believe is caused by
thrust::device_reference<T>
in some cases not being stripped toT
before being passed to function objects that are composed using placeholders (actors?). The minimal example I could come up with:Here, the problem is related to the last argument (BinaryOp2). The same can be demonstrated with this function object:
Somehow
erroneous_thing
is instantiated withT
beingthrust::device_reference<float>
, while it should be float, resulting in a compile error. I haven't faced the problem with any other algorithm I've used;thrust::transform
properly strips reference, as well as reduction part of inner_product (e.g. passingerroneous_thing{}
as a first parameter is fine).CUDA toolkit 10.2.
The text was updated successfully, but these errors were encountered: