Repository navigation
[on hold] Replace thrust::complex by libcu++ - #3507
bernhardmgruber wants to merge 1 commit into
Conversation
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
|
The issue is more with the math functions than with anything else |
|
I think the biggest problem is that The replacement could lead to some unexpected behaviour. An example: thrust::complex<float> alloc(size_t n)
{
return new thrust::complex<float>[n];
}The old implementation does not zero initialize the allocated array, but when implemented by This can have some serious performance consequences, e. g. for NUMA systems where the memory will be first touched by a single thread. |
That is actually a quite important problem, as certain libraries require trivially_copyable types, for example rapids device_uvector The long term solution that we want is a |
No description provided.