Skip to content

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

Merged
jrhemstad merged 1 commit intoNVIDIA:branch/2.3.xfrom
miscco:backport_1178
Dec 8, 2023
Merged

[BACKPORT] Implement math functions for thrust::complex#1191
jrhemstad merged 1 commit intoNVIDIA:branch/2.3.xfrom
miscco:backport_1178

Conversation

@miscco
Copy link
Contributor

@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
@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

thrust For all items related to Thrust.

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants