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

Support for popcount. #2

Open
rjfnobre opened this issue Apr 2, 2021 · 2 comments
Open

Support for popcount. #2

rjfnobre opened this issue Apr 2, 2021 · 2 comments

Comments

@rjfnobre
Copy link

rjfnobre commented Apr 2, 2021

Is the current implementation of hipSYCL supposed to have support for popcount()?

I get the following error when compiling SYCL code that uses popcount with the syclcc compiler from hipSYCL.
error: ‘popcount’ is not a member of ‘cl::sycl’

@illuhad
Copy link
Contributor

illuhad commented Apr 4, 2021

popcount is not yet implemented. We will add it together with other bit count functions such as ctz and clz which are also still missing.
If you need this functionality urgently, you can use hipSYCL's backend interoperability mechanisms to invoke CUDA/HIP intrinsics such as __popc().
See https://github.com/illuhad/hipSYCL/blob/develop/doc/hip-source-interop.md

@rjfnobre
Copy link
Author

Thanks for the information. This SYCL implementation seems to be advancing at a good pace. I will keep an eye on the upcoming updates of this project.

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

No branches or pull requests

2 participants