SWDEV-333607 - Avoid synchronization of all GPU(s)

Use the original device from creation to sync before host memory
free.

Change-Id: I510e34afa7accf69e3d01338587bbc817b981cec
Этот коммит содержится в:
German Andryeyev
2022-04-20 18:55:38 -04:00
коммит произвёл Saleel Kudchadker
родитель 95d0b79ca0
Коммит b4c5a01fbc
3 изменённых файлов: 39 добавлений и 48 удалений
+2 -2
Просмотреть файл
@@ -1,4 +1,4 @@
/* Copyright (c) 2015 - 2021 Advanced Micro Devices, Inc.
/* Copyright (c) 2015 - 2022 Advanced Micro Devices, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@@ -182,7 +182,7 @@ void Stream::syncNonBlockingStreams(int deviceId) {
amd::ScopedLock lock(streamSetLock);
for (auto& it : streamSet) {
if (it->Flags() & hipStreamNonBlocking) {
if (deviceId == -1 || it->DeviceId() == deviceId) {
if (it->DeviceId() == deviceId) {
it->asHostQueue()->finish();
}
}