[all-commits] [llvm/llvm-project] 8d6611: [Clang] Only link C device libraries by default fo...

Joseph Huber via All-commits all-commits at lists.llvm.org
Wed Oct 15 07:42:19 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8d66114a0379d8d564d4ef0f1d53749d0489dd12
      https://github.com/llvm/llvm-project/commit/8d66114a0379d8d564d4ef0f1d53749d0489dd12
  Author: Joseph Huber <huberjn at outlook.com>
  Date:   2025-10-15 (Wed, 15 Oct 2025)

  Changed paths:
    M clang/lib/Driver/ToolChains/Clang.cpp
    R clang/test/Driver/gpu-libc-headers.c
    A clang/test/Driver/gpu-libc.c

  Log Message:
  -----------
  [Clang] Only link C device libraries by default for OpenMP (#151239)

Summary:
We link these implicitly for OpenMP because it's the canonical
implementation of those C language features. This was inhereted by HIP
and ended up with these resolving functions. There are some useful
functions in here, but this can be problematic as it could potentially
override functions intended to be provided by the ROCm device libraries.
Additionally the HIP runtime does not currently provide the handling for
the RPC server required to run the host resources so those just
segfault.



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