[libc-commits] [PATCH] D153040: [libc] Rename and install the RPC server interface

Joseph Huber via Phabricator via libc-commits libc-commits at lists.llvm.org
Wed Jun 21 09:26:43 PDT 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rGe0b487bfc076: [libc] Rename and install the RPC server interface (authored by jhuber6).

Changed prior to commit:
  https://reviews.llvm.org/D153040?vs=531785&id=533296#toc

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D153040/new/

https://reviews.llvm.org/D153040

Files:
  libc/utils/gpu/loader/Loader.h
  libc/utils/gpu/loader/amdgpu/CMakeLists.txt
  libc/utils/gpu/loader/nvptx/CMakeLists.txt
  libc/utils/gpu/server/CMakeLists.txt
  libc/utils/gpu/server/Server.cpp
  libc/utils/gpu/server/Server.h
  libc/utils/gpu/server/rpc_server.cpp
  libc/utils/gpu/server/rpc_server.h


Index: libc/utils/gpu/server/rpc_server.cpp
===================================================================
--- libc/utils/gpu/server/rpc_server.cpp
+++ libc/utils/gpu/server/rpc_server.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "Server.h"
+#include "rpc_server.h"
 
 #include "src/__support/RPC/rpc.h"
 #include <atomic>
Index: libc/utils/gpu/server/CMakeLists.txt
===================================================================
--- libc/utils/gpu/server/CMakeLists.txt
+++ libc/utils/gpu/server/CMakeLists.txt
@@ -1,8 +1,14 @@
-add_library(rpc_server STATIC Server.cpp)
+add_library(llvmlibc_rpc_server STATIC rpc_server.cpp)
 
 # Include the RPC implemenation from libc.
-add_dependencies(rpc_server libc.src.__support.RPC.rpc)
-target_include_directories(rpc_server PRIVATE ${LIBC_SOURCE_DIR})
-# TODO: This is for the opcodes, we will copy the file here when installed.
-target_include_directories(rpc_server PUBLIC ${LIBC_SOURCE_DIR}/include)
-target_include_directories(rpc_server PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
+target_include_directories(llvmlibc_rpc_server PRIVATE ${LIBC_SOURCE_DIR})
+target_include_directories(llvmlibc_rpc_server PUBLIC ${LIBC_SOURCE_DIR}/include)
+target_include_directories(llvmlibc_rpc_server PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
+
+# Install the server and associated header.
+install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/rpc_server.h
+        DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/gpu-none-llvm/
+        COMPONENT libc)
+install(TARGETS llvmlibc_rpc_server
+        ARCHIVE DESTINATION "lib${LLVM_LIBDIR_SUFFIX}"
+        COMPONENT libc)
Index: libc/utils/gpu/loader/nvptx/CMakeLists.txt
===================================================================
--- libc/utils/gpu/loader/nvptx/CMakeLists.txt
+++ libc/utils/gpu/loader/nvptx/CMakeLists.txt
@@ -8,7 +8,7 @@
 target_link_libraries(nvptx_loader
   PRIVATE
   gpu_loader
-  rpc_server
+  llvmlibc_rpc_server
   CUDA::cuda_driver
   LLVMObject
   LLVMSupport
Index: libc/utils/gpu/loader/amdgpu/CMakeLists.txt
===================================================================
--- libc/utils/gpu/loader/amdgpu/CMakeLists.txt
+++ libc/utils/gpu/loader/amdgpu/CMakeLists.txt
@@ -5,5 +5,5 @@
   PRIVATE
   hsa-runtime64::hsa-runtime64
   gpu_loader
-  rpc_server
+  llvmlibc_rpc_server
 )
Index: libc/utils/gpu/loader/Loader.h
===================================================================
--- libc/utils/gpu/loader/Loader.h
+++ libc/utils/gpu/loader/Loader.h
@@ -9,7 +9,7 @@
 #ifndef LLVM_LIBC_UTILS_GPU_LOADER_LOADER_H
 #define LLVM_LIBC_UTILS_GPU_LOADER_LOADER_H
 
-#include "utils/gpu/server/Server.h"
+#include "utils/gpu/server/rpc_server.h"
 #include <cstddef>
 #include <cstdint>
 #include <cstdio>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D153040.533296.patch
Type: text/x-patch
Size: 2787 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230621/5ea729ca/attachment.bin>


More information about the libc-commits mailing list