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

[FEA]: Add __int128_t method for cuda::std::abs() #1926

Open
1 task done
pmattione-nvidia opened this issue Jul 1, 2024 · 0 comments
Open
1 task done

[FEA]: Add __int128_t method for cuda::std::abs() #1926

pmattione-nvidia opened this issue Jul 1, 2024 · 0 comments
Labels
feature request New feature or request.

Comments

@pmattione-nvidia
Copy link

Is this a duplicate?

Area

libcu++

Is your feature request related to a problem? Please describe.

In template code, I need to take the absolute value of a signed integer, but I cannot use cuda::std::abs() as one of the integer types I need to use is __int128_t. Since cuda::std::abs() doesn't support __int128_t, I have to roll my own version instead.

Describe the solution you'd like

I would like there to be an overload for cuda::std::abs() that takes an __int128_t as an input.

Describe alternatives you've considered

No response

Additional context

No response

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

No branches or pull requests

1 participant