@@ -1133,10 +1133,6 @@ GenericDeviceTy::loadBinary(GenericPluginTy &Plugin,
1133
1133
} else if (auto Err = setupDeviceMemoryPool (Plugin, *Image, HeapSize))
1134
1134
return std::move (Err);
1135
1135
}
1136
-
1137
- if (auto Err = setupRPCServer (Plugin, *Image))
1138
- return std::move (Err);
1139
-
1140
1136
#ifdef OMPT_SUPPORT
1141
1137
if (ompt::Initialized) {
1142
1138
size_t Bytes =
@@ -1250,33 +1246,6 @@ Error GenericDeviceTy::setupDeviceMemoryPool(GenericPluginTy &Plugin,
1250
1246
return GHandler.writeGlobalToDevice (*this , Image, DevEnvGlobal);
1251
1247
}
1252
1248
1253
- Error GenericDeviceTy::setupRPCServer (GenericPluginTy &Plugin,
1254
- DeviceImageTy &Image) {
1255
- // The plugin either does not need an RPC server or it is unavailable.
1256
- if (!shouldSetupRPCServer ())
1257
- return Plugin::success ();
1258
-
1259
- // Check if this device needs to run an RPC server.
1260
- RPCServerTy &Server = Plugin.getRPCServer ();
1261
- auto UsingOrErr =
1262
- Server.isDeviceUsingRPC (*this , Plugin.getGlobalHandler (), Image);
1263
- if (!UsingOrErr)
1264
- return UsingOrErr.takeError ();
1265
-
1266
- if (!UsingOrErr.get ())
1267
- return Plugin::success ();
1268
-
1269
- if (auto Err = Server.initDevice (*this , Plugin.getGlobalHandler (), Image))
1270
- return Err;
1271
-
1272
- if (auto Err = Server.startThread ())
1273
- return Err;
1274
-
1275
- RPCServer = &Server;
1276
- DP (" Running an RPC server on device %d\n " , getDeviceId ());
1277
- return Plugin::success ();
1278
- }
1279
-
1280
1249
Error PinnedAllocationMapTy::insertEntry (void *HstPtr, void *DevAccessiblePtr,
1281
1250
size_t Size, bool ExternallyLocked) {
1282
1251
// Insert the new entry into the map.
@@ -1895,12 +1864,13 @@ Error GenericPluginTy::deinit() {
1895
1864
if (GlobalHandler)
1896
1865
delete GlobalHandler;
1897
1866
1898
- if (RPCServer && RPCServer->Thread ->Running .load (std::memory_order_relaxed))
1867
+ #if RPC_FIXME
1868
+ if (RPCServer) {
1899
1869
if (Error Err = RPCServer->shutDown ())
1900
1870
return Err;
1901
-
1902
- if (RPCServer)
1903
1871
delete RPCServer;
1872
+ }
1873
+ #endif
1904
1874
1905
1875
if (RecordReplay)
1906
1876
delete RecordReplay;
0 commit comments