Lines Matching defs:Device
51 Result = Device.synchronize(*this);
57 Result = Device.queryAsync(*this);
145 for (auto &Device : PM->devices(ExclusiveDevicesAccessor))
146 dumpTargetPointerMappings(Loc, Device);
189 for (auto &Device : PM->devices(ExclusiveDevicesAccessor))
190 dumpTargetPointerMappings(Loc, Device);
293 int targetDataMapper(ident_t *Loc, DeviceTy &Device, void *ArgBase, void *Arg,
323 int Rc = TargetDataFunction(Loc, Device, MapperComponents.Components.size(),
333 int targetDataBegin(ident_t *Loc, DeviceTy &Device, int32_t ArgNum,
353 int Rc = targetDataMapper(Loc, Device, ArgsBase[I], Args[I], ArgSizes[I],
407 Device.getMappingInfo().HostDataToTargetMap.getExclusiveAccessor();
423 PointerTpr = Device.getMappingInfo().getTargetPointer(
453 auto TPR = Device.getMappingInfo().getTargetPointer(
493 Device.submitData(PointerTgtPtrBegin, &TgtPtrBase, sizeof(void *),
499 if (PointerTpr.getEntry()->addEventIfNecessary(Device, AsyncInfo) !=
510 INFO(OMP_INFOTYPE_EMPTY_MAPPING, Device.DeviceID,
549 postProcessingTargetDataEnd(DeviceTy *Device,
571 Device->getMappingInfo().HostDataToTargetMap.getExclusiveAccessor();
609 Ret = Device->getMappingInfo().eraseMapEntry(HDTTMap, Entry, DataSize);
612 Ret |= Device->getMappingInfo().deallocTgtPtrAndEntry(Entry, DataSize);
624 int targetDataEnd(ident_t *Loc, DeviceTy &Device, int32_t ArgNum,
645 Ret = targetDataMapper(Loc, Device, ArgBases[I], Args[I], ArgSizes[I],
670 TargetPointerResultTy TPR = Device.getMappingInfo().getTgtPtrBegin(
724 if (Device.waitEvent(Event, AsyncInfo) != OFFLOAD_SUCCESS) {
730 Ret = Device.retrieveData(HstPtrBegin, TgtPtrBegin, DataSize, AsyncInfo,
743 if (TPR.getEntry()->addEventIfNecessary(Device, AsyncInfo) !=
758 AsyncInfo.addPostProcessingFunction([=, Device = &Device]() mutable -> int {
759 return postProcessingTargetDataEnd(Device, *PostProcessingPtrs);
765 static int targetDataContiguous(ident_t *Loc, DeviceTy &Device, void *ArgsBase,
768 TargetPointerResultTy TPR = Device.getMappingInfo().getTgtPtrBegin(
792 int Ret = Device.submitData(TgtPtrBegin, HstPtrBegin, ArgSize, AsyncInfo,
804 Ret = Device.submitData(ShadowPtr.TgtPtrAddr,
823 int Ret = Device.retrieveData(HstPtrBegin, TgtPtrBegin, ArgSize, AsyncInfo,
855 static int targetDataNonContiguous(ident_t *Loc, DeviceTy &Device,
869 Ret = targetDataNonContiguous(Loc, Device, ArgsBase, NonContig, Size,
883 Ret = targetDataContiguous(Loc, Device, ArgsBase, Ptr, Size, ArgType,
900 int targetDataUpdate(ident_t *Loc, DeviceTy &Device, int32_t ArgNum,
917 int Ret = targetDataMapper(Loc, Device, ArgsBase[I], Args[I], ArgSizes[I],
940 Loc, Device, ArgsBase[I], NonContig, Size, ArgTypes[I],
943 Ret = targetDataContiguous(Loc, Device, ArgsBase[I], Args[I], ArgSizes[I],
1036 DeviceTy &Device;
1048 : Device(Dev), AsyncInfo(AsyncInfo) {}
1060 TgtPtr = Device.allocData(ArgSize, HstPtr);
1077 int Ret = Device.submitData(TgtPtr, HstPtr, ArgSize, AsyncInfo);
1150 Device.allocData(FirstPrivateArgSize, FirstPrivateArgBuffer.data());
1159 int Ret = Device.submitData(TgtPtr, FirstPrivateArgBuffer.data(),
1187 int Ret = Device.deleteData(P);
1381 int target(ident_t *Loc, DeviceTy &Device, void *HostPtr,
1383 int32_t DeviceId = Device.DeviceID;
1416 PrivateArgumentManagerTy PrivateArgumentManager(Device, AsyncInfo);
1462 Ret = Device.launchKernel(TgtEntryPtr, TgtArgs.data(), TgtOffsets.data(),
1491 int target_activate_rr(DeviceTy &Device, uint64_t MemorySize, void *VAddr,
1494 return Device.RTL->initialize_record_replay(Device.DeviceID, MemorySize,
1502 int target_replay(ident_t *Loc, DeviceTy &Device, void *HostPtr,
1507 int32_t DeviceId = Device.DeviceID;
1534 void *TgtPtr = Device.allocData(DeviceMemorySize, /*HstPtr=*/nullptr,
1536 Device.submitData(TgtPtr, DeviceMemory, DeviceMemorySize, AsyncInfo);
1545 int Ret = Device.launchKernel(TgtEntryPtr, TgtArgs, TgtOffsets, KernelArgs,