[libc-commits] [PATCH] D152575: Added modf for NVPTX and AMDGPU targets to implement 'libmgpu.a' for math on the GPU
Anton Rydahl via Phabricator via libc-commits
libc-commits at lists.llvm.org
Fri Jun 9 11:53:25 PDT 2023
AntonRydahl created this revision.
Herald added subscribers: libc-commits, mattd, gchakrabarti, asavonic, kerbowa, tpr, dstuttard, yaxunl, jvesely, kzhuravl.
Herald added projects: libc-project, All.
AntonRydahl requested review of this revision.
Herald added subscribers: jplehr, sstefan1, wdng.
Herald added a reviewer: jdoerfert.
This patch is a follow-up to D152468 <https://reviews.llvm.org/D152486>. It replaces calls to `modf` with `__nv_modf` or `__ocml_modf_f64`. If you think I have done it the right way, I will continue to submit equivalent changes
for other math functions.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D152575
Files:
libc/config/gpu/entrypoints.txt
libc/src/math/gpu/CMakeLists.txt
libc/src/math/gpu/amdgpu/amdgpu.h
libc/src/math/gpu/amdgpu/declarations.h
libc/src/math/gpu/modf.cpp
libc/src/math/gpu/nvptx/declarations.h
libc/src/math/gpu/nvptx/nvptx.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152575.530045.patch
Type: text/x-patch
Size: 3812 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230609/c9cd95a2/attachment-0001.bin>
More information about the libc-commits
mailing list