[all-commits] [llvm/llvm-project] 1ad5f6: [CUDA] added cmath wrappers to unbreak CUDA compil...
Artem Belevich via All-commits
all-commits at lists.llvm.org
Thu Jan 12 15:38:28 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1ad5f6af816a439a84f7d8fe3dff87dd1f8a39ba
https://github.com/llvm/llvm-project/commit/1ad5f6af816a439a84f7d8fe3dff87dd1f8a39ba
Author: Artem Belevich <tra at google.com>
Date: 2023-01-12 (Thu, 12 Jan 2023)
Changed paths:
M clang/lib/Headers/CMakeLists.txt
A clang/lib/Headers/cuda_wrappers/cmath
Log Message:
-----------
[CUDA] added cmath wrappers to unbreak CUDA compilation after D79555
libc++ introduced a handful of internal functions that may or may not be
constexpr, depending on C++ version. For pre-constexpr variants we must declare
__device__ counterparts. Otherwise the code fails to compile on the GPU side.
See https://reviews.llvm.org/D79555
Differential Revision: https://reviews.llvm.org/D141555
More information about the All-commits
mailing list