Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BACKPORT] Implement math functions for thrust::complex #1191

Merged
merged 1 commit into from
Dec 8, 2023

Conversation

miscco
Copy link
Collaborator

@miscco miscco commented Dec 7, 2023

This is a backport of #1178

We need to ensure that math functions that return a complex<T> actually return a thrust::complex<T> and not a cuda::std::complex<T>

* Implement math functions for `thrust::complex`

We are having issues that the `cuda::std` math functions that take a `cuda::std::complex` return a `cuda::std::complex`. This can lead to issues as we require a conversion sequence from `cuda::std::complex` to `thrust::complex` which e.g is broken by an constructor being explicit.

Addresses nvbug4397241
@miscco miscco requested review from a team as code owners December 7, 2023 07:22
@miscco miscco added libcu++ For all items related to libcu++ bug: functional thrust For all items related to Thrust. and removed libcu++ For all items related to libcu++ labels Dec 7, 2023
@jrhemstad jrhemstad merged commit 665b376 into NVIDIA:branch/2.3.x Dec 8, 2023
517 checks passed
@miscco miscco deleted the backport_1178 branch December 8, 2023 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug: functional thrust For all items related to Thrust.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants