-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[libc][libm][GPU] Add missing vendor entrypoints to the GPU version of libm
#66034
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
Conversation
…f `libm` There are a number of entry-points in `libm` for which no target-agnostic implementations exist and the built-ins do not lower correctly on either AMDGPU or NVPTX targets. This patch adds the vendor entry-points as a temporary solution.
@llvm/pr-subscribers-libc ChangesThere are a number of entry points in
|
@llvm/pr-subscribers-backend-amdgpu ChangesThere are a number of entry points in
|
I think I have incorporated the suggested changes. Is there anything else I should change? 😊 |
Does it build and pass all the tests? The vendor stuff is straightforward since we don't test that and we'll delete it eventually anway. The |
Sorry for the late reply! I passes all test on AMD GPUs at least |
✅ With the latest revision this PR passed the C/C++ code formatter. |
Pretty sure this all needs to be rebased on the recent |
The change could be done with this command: ``` for file in `grep -rn libc/src/math -e "namespace.*libc" -l`; do echo "updating $file"; sed -i -e 's/__llvm_libc/LIBC_NAMESPACE/g' $file; done ```
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LG after fixing the header formatting.
Thanks a bunch! I don't know how I did not notice the misformatted headers. I have fixed those now. |
There are a number of entry points in
libm
for which no target-agnostic implementations exist, and the built-ins do not lower correctly on either AMDGPU or NVPTX targets. This patch adds the vendor entry points as a temporary solution.