-
Notifications
You must be signed in to change notification settings - Fork 69
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
Add device function version for HIP platform. #38
Comments
Here is another function which also has the host and device attribute mismatch:
|
But the
At least conversion to integral types is a |
@ex-rzr Could you help report any HIP bugs to HIP Issues? I am looking into why the host code compilation is failing in this case. Thank you |
@aaronenyeshi, sorry for the delay. I've never used HIP-clang before. Could you provide instructions where to get and how to build it? |
So far, it is only internal. I will discuss with my team. Thanks |
@ex-rzr What email can I contact you at and discuss this? Thanks |
#63 fixes this (in There are other changes related to HIP-clang support. See this change: d259b36#diff-8f4678af31293d182b2d4028abadd827 |
I'm running into an error with the latest rocPRIM develop branch on HIP-Clang. The error is due to function half_to_native in test_utils.hpp which doesn't have a host function but it being called by host function.
As you can see in the final line, the host versions of half_to_native is removed due to the #else clause. In HIP-Clang its very strict (same as CUDA) where host functions cannot call functions which have only device attribute. Is it possible to use ROCPRIM_HOST_DEVICE instead on lines 56 and 62 of test_utils.hpp?
The text was updated successfully, but these errors were encountered: