-
Notifications
You must be signed in to change notification settings - Fork 757
[BUG] Reduction core-dump with transform iterator using device only lambda. #1259
Comments
Repro here (internal): https://nvidia.slack.com/files/U9TQTPHJR/F01979G9KHC/reduce_transform_it_cu.cpp I've repro the bug with 10.2 and 11.0 CUDA toolkits. |
@jaredhoberock indicated this may be because of how |
Is there any hope of a fix for this? |
Probably not. This came up on The tl;dr is that Using a Closing as |
Actually, it looks like there's another discussion of this in #779 that proposes some ideas to triage the placeholder problem. I'll remove Follow that issue to track this, but for now use |
thrust::reduce()
crashes with atransform_iterator
defined in terms of a device-only lambda (i.e., qualified only by__device__
). The exception is:Example:
If
dlambda_sq
above is used in athrust::transform()
the call is successful; or, if the lambda is qualified by__host__ __device__
, instead of just__device__
, again the test passes.The text was updated successfully, but these errors were encountered: