[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:23:24 PDT 2024


================
@@ -1492,7 +1492,7 @@ Error GenericPluginTy::init() {
   GlobalHandler = createGlobalHandler();
   assert(GlobalHandler && "Invalid global handler");
 
-  RPCServer = new RPCServerTy(NumDevices);
+  RPCServer = new RPCServerTy();
   assert(RPCServer && "Invalid RPC server");
----------------
shiltian wrote:

If we assume later that this pointer will not be null, then we really should take care of it here; otherwise we don't need the check here.

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


More information about the libc-commits mailing list