Lines Matching refs:DstDevId
1032 int dataExchange(int SrcDevId, const void *SrcPtr, int DstDevId, void *DstPtr, in dataExchange() argument
1040 if (SrcDevId != DstDevId) { in dataExchange()
1043 switch (PeerAccessMatrix[SrcDevId][DstDevId]) { in dataExchange()
1047 SrcDevId, DstDevId); in dataExchange()
1052 Err = cuDeviceCanAccessPeer(&CanAccessPeer, SrcDevId, DstDevId); in dataExchange()
1056 SrcDevId, DstDevId); in dataExchange()
1058 PeerAccessMatrix[SrcDevId][DstDevId] = PeerAccessState::No; in dataExchange()
1065 SrcDevId, DstDevId); in dataExchange()
1066 PeerAccessMatrix[SrcDevId][DstDevId] = PeerAccessState::No; in dataExchange()
1070 Err = cuCtxEnablePeerAccess(DeviceData[DstDevId].Context, 0); in dataExchange()
1074 SrcDevId, DstDevId); in dataExchange()
1076 PeerAccessMatrix[SrcDevId][DstDevId] = PeerAccessState::No; in dataExchange()
1080 PeerAccessMatrix[SrcDevId][DstDevId] = PeerAccessState::Yes; in dataExchange()
1086 (CUdeviceptr)DstPtr, DeviceData[DstDevId].Context, in dataExchange()
1094 DPxPTR(SrcPtr), SrcDevId, DPxPTR(DstPtr), DstDevId); in dataExchange()
1579 int32_t __tgt_rtl_is_data_exchangable(int32_t SrcDevId, int DstDevId) { in __tgt_rtl_is_data_exchangable() argument
1581 DeviceRTL.isValidDeviceId(DstDevId)) in __tgt_rtl_is_data_exchangable()
1674 int DstDevId, void *DstPtr, int64_t Size, in __tgt_rtl_data_exchange_async() argument
1677 assert(DeviceRTL.isValidDeviceId(DstDevId) && "dst_dev_id is invalid"); in __tgt_rtl_data_exchange_async()
1683 return DeviceRTL.dataExchange(SrcDevId, SrcPtr, DstDevId, DstPtr, Size, in __tgt_rtl_data_exchange_async()
1688 int32_t DstDevId, void *DstPtr, int64_t Size) { in __tgt_rtl_data_exchange() argument
1690 assert(DeviceRTL.isValidDeviceId(DstDevId) && "dst_dev_id is invalid"); in __tgt_rtl_data_exchange()
1694 const int32_t Rc = __tgt_rtl_data_exchange_async(SrcDevId, SrcPtr, DstDevId, in __tgt_rtl_data_exchange()