[llvm-branch-commits] [clang] clang/AMDGPU: Fix double linking opencl libs with --libclc-lib (PR #204865)
Joseph Huber via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Jun 22 07:06:29 PDT 2026
jhuber6 wrote:
> Not sure I follow, these can't coexist. They both have the exact same OpenCL functions with itanium mangling
The headers that HIP/CUDA use eagerly rewrite `sin` and `std::sin` to `__ocml_sin_f64` via force-included headers. So if those headers are still included there's no way to resolve math without using the same symbols.
https://github.com/llvm/llvm-project/pull/204865
More information about the llvm-branch-commits
mailing list