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

[BUG]: temporary storage size fails to compile #285

Open
1 task done
gonzalobg opened this issue Jul 28, 2023 · 0 comments
Open
1 task done

[BUG]: temporary storage size fails to compile #285

gonzalobg opened this issue Jul 28, 2023 · 0 comments

Comments

@gonzalobg
Copy link
Collaborator

Is this a duplicate?

Type of Bug

Compile-time Error

Component

CUB

Describe the bug

Trying to use a temporary for the temp_storage_size, e.g., by calling thrust::device_vector::size(), fails to compile because the algorithms require a non-const lvalue ref.

Repro: cub::DeviceReduce::Reduce(thrust_device_vector.data().get(), thrust_device_vector.size(), ...).

How to Reproduce

See the above.

Expected behavior

Should work.

Reproduction link

No response

Operating System

No response

nvidia-smi output

No response

NVCC version

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant