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

Does cub::DeviceRadixSort support that the input and the output is the same pointer? #60

Closed
desert0616 opened this issue Oct 8, 2016 · 4 comments

Comments

@desert0616
Copy link

Hi,
I was wondering whether it is ok if I set the input and the output to the same pointer? It is usual to sort an array and output the sorted results to the original location.

Thanks.

@dumerrill
Copy link
Contributor

Not yet. We will soon.

@desert0616
Copy link
Author

Does "not yet" means any overlapped input and output used for cub device functions will get an incorrect result?

Thanks

@dumerrill
Copy link
Contributor

Yeah, there is potential for incorrect results (depending on the number of
internal sorting passes, e.g., if it is an odd number, the results would
end up in the temporary buffer.)

On Sat, Oct 8, 2016 at 1:19 AM, Mo Sha notifications@github.com wrote:

Does "not yet" means any overlapped input and output used for cub device
functions will get an incorrect result?

Thanks


You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/NVlabs/cub/issues/60#issuecomment-252403849, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABaFwFX54vpixDtoe0UgGOhPw3BRfNg2ks5qxyfugaJpZM4KRmzl
.

@desert0616
Copy link
Author

Thank you so much for the reply .Dose the DoubleBuffer version api can avoid this issue?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants