Lines Matching defs:Plugin

97       return Plugin::error("Record-Replay cannot assign the"
109 return Plugin::success();
124 return Plugin::error("Allocating record/replay memory");
154 return Plugin::success();
169 return Plugin::error("Cannot determine Device Memory Size");
253 auto Err = Plugin::success();
356 return Plugin::success();
375 setupIndirectCallTable(GenericPluginTy &Plugin, GenericDeviceTy &Device,
377 GenericGlobalHandlerTy &Handler = Plugin.getGlobalHandler();
444 GenericGlobalHandlerTy &GHandler = GenericDevice.Plugin.getGlobalHandler();
479 if (GenericDevice.Plugin.getRecordReplay().isReplaying() ||
544 return Plugin::success();
583 RecordReplayTy &RecordReplay = GenericDevice.Plugin.getRecordReplay();
731 GenericDeviceTy::GenericDeviceTy(GenericPluginTy &Plugin, int32_t DeviceId,
734 : Plugin(Plugin), MemoryManager(nullptr), OMP_TeamLimit("OMP_TEAM_LIMIT"),
765 Error GenericDeviceTy::init(GenericPluginTy &Plugin) {
766 if (auto Err = initImpl(Plugin))
773 performOmptCallback(device_initialize, Plugin.getUserId(DeviceId),
815 return Plugin::success();
818 Error GenericDeviceTy::deinit(GenericPluginTy &Plugin) {
820 if (auto Err = callGlobalDestructors(Plugin, *Image))
824 GenericGlobalHandlerTy &GHandler = Plugin.getGlobalHandler();
854 GenericGlobalHandlerTy &Handler = Plugin.getGlobalHandler();
873 RecordReplayTy &RecordReplay = Plugin.getRecordReplay();
885 performOmptCallback(device_finalize, Plugin.getUserId(DeviceId));
892 GenericDeviceTy::loadBinary(GenericPluginTy &Plugin,
897 auto PostJITImageOrErr = Plugin.getJIT().process(*InputTgtImage, *this);
921 if (auto Err = setupDeviceEnvironment(Plugin, *Image))
925 if (!Plugin.getRecordReplay().isReplaying() &&
932 } else if (auto Err = setupDeviceMemoryPool(Plugin, *Image, HeapSize))
936 if (auto Err = setupRPCServer(Plugin, *Image))
944 device_load, Plugin.getUserId(DeviceId),
952 if (auto Err = callGlobalConstructors(Plugin, *Image))
959 Error GenericDeviceTy::setupDeviceEnvironment(GenericPluginTy &Plugin,
963 return Plugin::success();
966 auto CallTablePairOrErr = setupIndirectCallTable(Plugin, *this, Image);
972 DeviceEnvironment.NumDevices = Plugin.getNumDevices();
987 GenericGlobalHandlerTy &GHandler = Plugin.getGlobalHandler();
993 return Plugin::success();
996 Error GenericDeviceTy::setupDeviceMemoryPool(GenericPluginTy &Plugin,
1020 GenericGlobalHandlerTy &GHandler = Plugin.getGlobalHandler();
1041 Error GenericDeviceTy::setupRPCServer(GenericPluginTy &Plugin,
1045 return Plugin::success();
1048 RPCServerTy &Server = Plugin.getRPCServer();
1050 Server.isDeviceUsingRPC(*this, Plugin.getGlobalHandler(), Image);
1055 return Plugin::success();
1057 if (auto Err = Server.initDevice(*this, Plugin.getGlobalHandler(), Image))
1065 return Plugin::success();
1073 return Plugin::error("Cannot insert locked buffer entry");
1078 return Plugin::success();
1082 return Plugin::error("Partial overlapping not allowed in locked buffers");
1084 return Plugin::success();
1093 return Plugin::error("Cannot erase locked buffer entry");
1094 return Plugin::success();
1100 return Plugin::error("Partial overlapping not allowed in locked buffers");
1103 return Plugin::success();
1108 return Plugin::error("Invalid number of references");
1126 return Plugin::error("Cannot insert entry due to an existing one");
1139 return Plugin::error("Cannot find locked buffer");
1143 return Plugin::error("Unexpected host pointer in locked buffer entry");
1152 return Plugin::error("The locked buffer is still being used");
1198 return Plugin::error("Cannot find locked buffer");
1208 return Plugin::success();
1248 return Plugin::success();
1258 return Plugin::success();
1275 return Plugin::success();
1280 return Plugin::success();
1284 return Plugin::error("Locked buffer not found");
1293 return Plugin::success();
1307 return Plugin::error("Invalid async info queue");
1317 return Plugin::success();
1322 return Plugin::error("Invalid async info queue");
1328 return Plugin::error("Device does not suppport VA Management");
1332 return Plugin::error("Device does not suppport VA Management");
1336 return Plugin::error(
1344 if (Plugin.getRecordReplay().isRecordingOrReplaying())
1345 return Plugin.getRecordReplay().alloc(Size);
1354 return Plugin::error("Failed to allocate from memory manager");
1362 return Plugin::error("Failed to allocate from device allocator");
1368 return Plugin::error("Invalid target data allocation kind or requested "
1400 if (Plugin.getRecordReplay().isRecordingOrReplaying())
1401 return Plugin::success();
1442 return Plugin::error(
1452 return Plugin::error(
1462 return Plugin::success();
1499 Plugin.getRecordReplay().isRecordingOrReplaying() ? nullptr : AsyncInfo);
1522 RecordReplayTy &RecordReplay = Plugin.getRecordReplay();
1558 return Plugin::success();
1594 return Plugin::success();
1603 return Plugin::success();
1605 assert(Devices.size() == 0 && "Plugin already initialized");
1617 return Plugin::success();
1621 assert(Initialized && "Plugin was not initialized!");
1651 return Plugin::success();
1671 return Plugin::success();
1681 return Plugin::success();
2165 RecordReplayTy &RecordReplay = Device.Plugin.getRecordReplay();