diff options
| author | Michael Kruse <llvm-project@meinersbur.de> | 2025-01-03 10:22:51 +0100 |
|---|---|---|
| committer | Michael Kruse <llvm-project@meinersbur.de> | 2025-01-03 10:22:51 +0100 |
| commit | 38500d63e14ce340236840f60d356cdefb56a52c (patch) | |
| tree | 17edbec446ce9b50d2f215a483b83afb293a635d /libc/utils/gpu/server | |
| parent | 1a3d5daaef7a6a63448a497da3eff7fc9e23df26 (diff) | |
| parent | 27f30029741ecf023baece7b3dde1ff9011ffefc (diff) | |
Merge branch 'main' into users/meinersbur/flang_runtime_split-headersusers/meinersbur/flang_runtime_split-headers
Diffstat (limited to 'libc/utils/gpu/server')
| -rw-r--r-- | libc/utils/gpu/server/CMakeLists.txt | 5 | ||||
| -rw-r--r-- | libc/utils/gpu/server/rpc_server.cpp | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/libc/utils/gpu/server/CMakeLists.txt b/libc/utils/gpu/server/CMakeLists.txt index b1cada44cd32..a109d603318b 100644 --- a/libc/utils/gpu/server/CMakeLists.txt +++ b/libc/utils/gpu/server/CMakeLists.txt @@ -23,6 +23,11 @@ target_compile_definitions(llvmlibc_rpc_server PUBLIC LIBC_NAMESPACE=${LIBC_NAMESPACE}) # Install the server and associated header. +install(FILES ${LIBC_SOURCE_DIR}/shared/rpc.h + ${LIBC_SOURCE_DIR}/shared/rpc_util.h + ${LIBC_SOURCE_DIR}/shared/rpc_opcodes.h + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/shared + COMPONENT libc-headers) install(TARGETS llvmlibc_rpc_server ARCHIVE DESTINATION "lib${LLVM_LIBDIR_SUFFIX}" COMPONENT libc) diff --git a/libc/utils/gpu/server/rpc_server.cpp b/libc/utils/gpu/server/rpc_server.cpp index f724c5c82c42..1faee531fa20 100644 --- a/libc/utils/gpu/server/rpc_server.cpp +++ b/libc/utils/gpu/server/rpc_server.cpp @@ -437,10 +437,10 @@ rpc::Status handle_port_impl(rpc::Server::Port &port) { break; } default: - return rpc::UNHANDLED_OPCODE; + return rpc::RPC_UNHANDLED_OPCODE; } - return rpc::SUCCESS; + return rpc::RPC_SUCCESS; } namespace rpc { @@ -455,7 +455,7 @@ rpc::Status handle_libc_opcodes(rpc::Server::Port &port, uint32_t num_lanes) { case 64: return handle_port_impl<64>(port); default: - return rpc::ERROR; + return rpc::RPC_ERROR; } } } // namespace rpc |
