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]: cuda::std::bit_width returns the wrong data type #2744

Closed
1 task done
fbusato opened this issue Nov 8, 2024 · 0 comments · Fixed by #2745
Closed
1 task done

[BUG]: cuda::std::bit_width returns the wrong data type #2744

fbusato opened this issue Nov 8, 2024 · 0 comments · Fixed by #2745
Assignees
Labels
bug Something isn't working right.

Comments

@fbusato
Copy link
Contributor

fbusato commented Nov 8, 2024

Is this a duplicate?

Type of Bug

Something else

Component

libcu++

Describe the bug

The current implementation of cuda::std::bit_width(T) returns T.
It diverges from the C++ standard that always returns int.

How to Reproduce

check cuda::std::bit_width(T) implementation

Expected behavior

cuda::std::bit_width(T) must always return int

Reproduction link

No response

Operating System

No response

nvidia-smi output

No response

NVCC version

No response

@fbusato fbusato added the bug Something isn't working right. label Nov 8, 2024
@fbusato fbusato self-assigned this Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working right.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant