Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

reduce fails to compile with complex in CUDA 10.1 when compiling a separate library #1044

Closed
luiset83 opened this issue Jan 13, 2020 · 0 comments
Labels
P2: nice to have Desired, but not necessary. thrust triage Needs investigation and classification.

Comments

@luiset83
Copy link

Posted this in #928, but referencing here for visibility. Minimal reproducible example and details are here: #928 (comment)

This issue is also present in the reduction operation in CUB v1.8.0.

kwrobot pushed a commit to Kitware/VTK-m that referenced this issue Jul 9, 2020
When you try to call the `Reduce` operation in the CUDA device adapter
with a sufficently complex interator type, you get a compile error
that says `error: cannot pass an argument with a user-provided
copy-constructor to a device-side kernel launch`.

This appears to be a bug in either nvcc or Thrust. I believe it is
related to the following reported issues:

* NVIDIA/thrust#928
* NVIDIA/thrust#1044

Work around this problem by making a special condition for calling
`Reduce` with an `ArrayHandleMultiplexer` that calls the generic
algorithm in `DeviceAdapterAlgorithmGeneral` instead of the algorithm in
Thrust.
@alliepiper alliepiper added the triage Needs investigation and classification. label Oct 26, 2020
@alliepiper alliepiper added this to the 1.11.1 milestone Oct 26, 2020
@alliepiper alliepiper modified the milestones: 1.12.0, 1.13.0 Nov 30, 2020
@brycelelbach brycelelbach added the P2: nice to have Desired, but not necessary. label Mar 29, 2021
@brycelelbach brycelelbach modified the milestones: 1.13.0, 1.14.0 Mar 29, 2021
@alliepiper alliepiper modified the milestones: 1.14.0, 1.15.0 Aug 17, 2021
@alliepiper alliepiper modified the milestones: 1.15.0, 1.16.0 Oct 15, 2021
@alliepiper alliepiper modified the milestones: 1.16.0, 1.17.0 Feb 7, 2022
@alliepiper alliepiper modified the milestones: 1.17.0, Backlog Apr 25, 2022
@jrhemstad jrhemstad added this to CCCL Aug 11, 2022
@miscco miscco closed this as completed Feb 24, 2023
@github-project-automation github-project-automation bot moved this to Done in CCCL Feb 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
P2: nice to have Desired, but not necessary. thrust triage Needs investigation and classification.
Projects
Archived in project
Development

No branches or pull requests

5 participants