[Openmp-commits] [libc] [openmp] [libc] Change RPC interface to not use device ids (PR #87087)

Joseph Huber via Openmp-commits openmp-commits at lists.llvm.org
Fri Mar 29 10:20:34 PDT 2024


================
@@ -56,7 +55,9 @@ struct RPCServerTy {
   /// memory associated with the k
   llvm::Error deinitDevice(plugin::GenericDeviceTy &Device);
 
-  ~RPCServerTy();
+private:
+  /// Map from this device's identifier to its attached devices.
+  llvm::DenseMap<uint32_t, uintptr_t> Handles;
----------------
jhuber6 wrote:

We could have the situation where only device 4 or something uses an RPC server, but I could probably just resize it. I'll make that change.

https://github.com/llvm/llvm-project/pull/87087


More information about the Openmp-commits mailing list