[all-commits] [llvm/llvm-project] 686994: [Clang][HIP/CUDA] Guard declarations of cmath comp...
Juan Manuel Martinez Caamaño via All-commits
all-commits at lists.llvm.org
Fri May 29 06:22:27 PDT 2026
Branch: refs/heads/users/jmmartinez/fix_hip_build_in_windows
Home: https://github.com/llvm/llvm-project
Commit: 686994add2e69eb761b352235e4f0b5ef6a35120
https://github.com/llvm/llvm-project/commit/686994add2e69eb761b352235e4f0b5ef6a35120
Author: Juan Manuel Martinez Caamaño <jmartinezcaamao at gmail.com>
Date: 2026-05-29 (Fri, 29 May 2026)
Changed paths:
M clang/lib/Headers/__clang_cuda_cmath.h
M clang/lib/Headers/__clang_cuda_math_forward_declares.h
M clang/lib/Headers/__clang_cuda_runtime_wrapper.h
Log Message:
-----------
[Clang][HIP/CUDA] Guard declarations of cmath comparisons when using Microsoft's STL
In HIP, constexpr functions are treated as both, __host__ and
__device__.
A new version of the MS STL shipped with the build tools version 14.51.36231
has constexpr definitions for some cmath functions when the compiler in use is Clang.
These definitions conflict with the __device__ delcarations we provide in
the header wrappers.
This patch guards these declarations/definitions to use the ones coming
from the STL.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list