[PATCH] D35703: [GPGPU] Add support for NVIDIA libdevice

Tobias Grosser via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 20 15:44:28 PDT 2017


grosser created this revision.
grosser added a project: Polly.
Herald added subscribers: kbarton, mgorny, nemanjai.

This allows us to map functions such as exp, expf, expl, for which no
LLVM intrinsics exist. Instead, we link to NVIDIA's libdevice which provides
high-performance implementations of a wide range of (math) functions. We
currently link only a small subset, the exp* and cos functions. Other functions
will be enabled as needed.


https://reviews.llvm.org/D35703

Files:
  lib/CMakeLists.txt
  lib/CodeGen/PPCGCodeGeneration.cpp
  test/GPGPU/libdevice-functions-copied-into-kernel.ll
  test/GPGPU/libdevice-functions-copied-into-kernel_libdevice.bc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35703.107597.patch
Type: text/x-patch
Size: 11532 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170720/a1ead4ed/attachment.bin>


More information about the llvm-commits mailing list