SWDEV-511855 - Fix hipMemcpyPeer to support stream capture checks

Change-Id: I7797f069b3ed4240b6785e82da7494a97b4843c6


[ROCm/clr commit: 81051f3520]
Ta zmiana jest zawarta w:
Rahul Manocha authored and Rahul Manocha committed 2025-02-04 11:22:35 -05:00
1 rodzic 33b4f178c0
złożenie 4cbfbe2112
Plik 1 zmieniony
+1 -1
+1 -1
Wyświetl plik
@@ -189,7 +189,7 @@ hipError_t hipDeviceEnablePeerAccess(int peerDeviceId, unsigned int flags) {
hipError_t hipMemcpyPeer(void* dst, int dstDevice, const void* src, int srcDevice,
size_t sizeBytes) {
HIP_INIT_API(hipMemcpyPeer, dst, dstDevice, src, srcDevice, sizeBytes);
CHECK_STREAM_CAPTURING();
if (srcDevice >= static_cast<int>(g_devices.size()) ||
dstDevice >= static_cast<int>(g_devices.size()) ||
srcDevice < 0 || dstDevice < 0) {