[Openmp-commits] [PATCH] D121467: [Libomptarget] Create device math wrappers
Joseph Huber via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Fri Mar 11 08:34:38 PST 2022
jhuber6 added a comment.
In D121467#3375390 <https://reviews.llvm.org/D121467#3375390>, @tianshilei1992 wrote:
> What's the benefit of making it a standalone library instead of part of device runtime?
Johannes wanted this math library so we can get regular math calls on the device. We can't just include `math.h` and expect it because it has several things that aren't compatible with the device. We originally just had wrappers that mapped them to the device versions, but this meant we didn't have the optimizations LLVM has for the math functions. That being said, this is a lot of extra code and we'll need to see if it makes a performance difference. (It also makes compilation much slower.)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D121467/new/
https://reviews.llvm.org/D121467
More information about the Openmp-commits
mailing list