4 Commits

Author SHA1 Message Date
Joseph Huber
f855ceeefc [libc][NFC] use __has_builtin instead of checking macros. 2025-01-04 15:36:08 -06:00
Joseph Huber
9cb68b4dda
[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.
2024-12-16 09:09:03 -06:00
Joseph Huber
0ccc389512 [libc] Make RPC header work with GCC9 2024-11-25 07:31:35 -06:00
Joseph Huber
89614ceb40
[libc] Move RPC interface to libc/shared to export it (#117034)
Summary:
Previous patches have made the `rpc.h` header independent of the `libc`
internals. This allows us to include it directly rather than providing
an indirect C API. This patch only does the work to move the header. A
future patch will pull out the `rpc_server` interface and simply replace
it with a single function that handles the opcodes.
2024-11-22 15:32:25 -06:00