SWDEV-511855 - Fix hipMemcpyPeer to support stream capture checks

Change-Id: I7797f069b3ed4240b6785e82da7494a97b4843c6
This commit is contained in:
Rahul Manocha
2025-01-28 12:09:32 -08:00
committed by Rahul Manocha
parent 152cee3737
commit 81051f3520
+1 -1
View File
@@ -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) {