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

[THEME] Universal 64-bit index type support in Thrust/CUB algorithms #47

Open
3 tasks
jrhemstad opened this issue Apr 21, 2023 · 1 comment
Open
3 tasks
Assignees
Labels
cub For all items related to CUB feature request New feature or request. thrust For all items related to Thrust.

Comments

@jrhemstad
Copy link
Collaborator

jrhemstad commented Apr 21, 2023

Summary

Users expect Thrust/CUB algorithms to work with input sequences larger than INT_MAX. However, for historical reasons, many Thrust/CUB algorithms are hard-coded to use int as the index/offset type. As a result, those algorithms will fail (often silently) when provided inputs whose extent is larger than std::numeric_limits<int>::max().

In order to provide a delightful and consistent user experience, every Thrust/CUB should be able to work with inputs larger than INT_MAX. However, we likely want different solutions in Thrust vs CUB.

Intended Outcome

Thrust

  • All Thrust algorithms should work with large inputs by default.
  • Users should be able to opt-in to explicitly specify the offset type to avoid any compile/run-time overhead

CUB

  • CUB algorithms need not work with large inputs by default, but should enable users to work with large inputs

Depends On

Tasks

Related Info

NVIDIA/cub#212 was the previous tracking issue in CUB that has a lot of good discussion about what we want a solution to look like in Thrust vs CUB.

@jrhemstad jrhemstad added this to CCCL Apr 20, 2023
@jrhemstad jrhemstad converted this from a draft issue Apr 21, 2023
@jrhemstad jrhemstad changed the title [EPIC] Universal 64-bit index type support [EPIC] Universal 64-bit index type support in Thrust/CUB algorithms Apr 21, 2023
@miscco miscco added feature request New feature or request. thrust For all items related to Thrust. cub For all items related to CUB labels Jul 12, 2023
@bhack
Copy link

bhack commented Apr 30, 2024

Any news on this?

@elstehle elstehle changed the title [EPIC] Universal 64-bit index type support in Thrust/CUB algorithms [THEME] Universal 64-bit index type support in Thrust/CUB algorithms Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cub For all items related to CUB feature request New feature or request. thrust For all items related to Thrust.
Projects
Status: No status
Development

No branches or pull requests

4 participants