[all-commits] [llvm/llvm-project] 9cb68b: [libc] Make the RPC headers work when included fro...

Joseph Huber via All-commits all-commits at lists.llvm.org
Mon Dec 16 07:09:24 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9cb68b4ddad84f8c1f3a96ca3304d9916f3ee7da
      https://github.com/llvm/llvm-project/commit/9cb68b4ddad84f8c1f3a96ca3304d9916f3ee7da
  Author: Joseph Huber <huberjn at outlook.com>
  Date:   2024-12-16 (Mon, 16 Dec 2024)

  Changed paths:
    M libc/shared/rpc.h
    M libc/shared/rpc_util.h

  Log Message:
  -----------
  [libc] Make the RPC headers work when included from CUDA or HIP (#120016)

Summary:
In order for this to work with CUDA we need to declare functions as
__host__ and __device__ while also making sure we only call the GPU
functions during the CUDA / HIP compile stage.



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