We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
libcu++
The following functions
require to be constexpr which prevents potential optimizations such as intrinsics and asm.
constexpr
Such functions should be mapped to GPU ISA via PTX and/or intrinsics
Countl_zero
__clz
bfind_shift
Countr_zero
Countl_zero(__brev(x))
Countl_one
Countl_zero (~x)
Countr_one
Countl_one(__brev(x))
popcount
__popc
rotl/rotr
bit_floor, bit_ceil
has_single_bit
byteswap
No response
The text was updated successfully, but these errors were encountered:
cuda::std::rotl
cuda::std::rotr
Successfully merging a pull request may close this issue.
Is this a duplicate?
Area
libcu++
Is your feature request related to a problem? Please describe.
The following functions
require to be
constexpr
which prevents potential optimizations such as intrinsics and asm.Describe the solution you'd like
Such functions should be mapped to GPU ISA via PTX and/or intrinsics
Countl_zero
→ FLO + IADD3 (__clz
) / FLO.SH (PTX:bfind_shift
)Countr_zero
→Countl_zero(__brev(x))
Countl_one
→Countl_zero (~x)
Countr_one
→Countl_one(__brev(x))
popcount
→__popc
rotl/rotr
→ PTX: funnel shiftbit_floor, bit_ceil
→ FLO + shifthas_single_bit
→__popc
byteswap
→ PRMTDescribe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: