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

Shilei Tian via libc-commits libc-commits at lists.llvm.org
Fri Mar 29 10:17:46 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;
----------------
shiltian wrote:

Why a map instead of a vector?

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


More information about the libc-commits mailing list