SWDEV-511855 - Fix hipMemcpyPeer to support stream capture checks

Change-Id: I7797f069b3ed4240b6785e82da7494a97b4843c6


[ROCm/clr commit: 81051f3520]
Этот коммит содержится в:
Rahul Manocha
2025-01-28 12:09:32 -08:00
коммит произвёл Rahul Manocha
родитель 33b4f178c0
Коммит 4cbfbe2112
+1 -1
Просмотреть файл
@@ -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) {