Is this a duplicate?
Type of Bug
Silent Failure
Component
libcu++
Describe the bug
cuda::warp_match_all is a generalization of the __match_all_sync intrinsic. The function relies on bitwise comparison for any type.
If a type has padding, the functionality has undefined behavior. Even if the documentation highlights the problem, the functionality is bug-prone.
possible solutions:
- Wait until the compiler/nvvm provides a way to detect padding of a type. It could take long time and the function is easy to misused in the meanwhile.
- Deprecate / mark
= delete. Short-term solution (preferred).
Is this a duplicate?
Type of Bug
Silent Failure
Component
libcu++
Describe the bug
cuda::warp_match_allis a generalization of the__match_all_syncintrinsic. The function relies on bitwise comparison for any type.If a type has padding, the functionality has undefined behavior. Even if the documentation highlights the problem, the functionality is bug-prone.
possible solutions:
= delete. Short-term solution (preferred).