Lines Matching refs:SrcDevId

1032   int dataExchange(int SrcDevId, const void *SrcPtr, int DstDevId, void *DstPtr,  in dataExchange()  argument
1037 CUstream Stream = getStream(SrcDevId, AsyncInfo); in dataExchange()
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()
1074 SrcDevId, DstDevId); in dataExchange()
1076 PeerAccessMatrix[SrcDevId][DstDevId] = PeerAccessState::No; in dataExchange()
1080 PeerAccessMatrix[SrcDevId][DstDevId] = PeerAccessState::Yes; in dataExchange()
1087 (CUdeviceptr)SrcPtr, DeviceData[SrcDevId].Context, Size, Stream); 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
1580 if (DeviceRTL.isValidDeviceId(SrcDevId) && in __tgt_rtl_is_data_exchangable()
1673 int32_t __tgt_rtl_data_exchange_async(int32_t SrcDevId, void *SrcPtr, in __tgt_rtl_data_exchange_async() argument
1676 assert(DeviceRTL.isValidDeviceId(SrcDevId) && "src_dev_id is invalid"); in __tgt_rtl_data_exchange_async()
1680 if (DeviceRTL.setContext(SrcDevId) != OFFLOAD_SUCCESS) in __tgt_rtl_data_exchange_async()
1683 return DeviceRTL.dataExchange(SrcDevId, SrcPtr, DstDevId, DstPtr, Size, in __tgt_rtl_data_exchange_async()
1687 int32_t __tgt_rtl_data_exchange(int32_t SrcDevId, void *SrcPtr, in __tgt_rtl_data_exchange() argument
1689 assert(DeviceRTL.isValidDeviceId(SrcDevId) && "src_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()
1699 return __tgt_rtl_synchronize(SrcDevId, &AsyncInfo); in __tgt_rtl_data_exchange()