SWDEV-333607 - Avoid synchronization of all GPU(s)
Use the original device from creation to sync before host memory
free.
Change-Id: I510e34afa7accf69e3d01338587bbc817b981cec
[ROCm/clr commit: b4c5a01fbc]
Esse commit está contido em:
1 pai
db71771099
commit
ecb4165943
3 files changed
+39
-48
No files matched your search
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Bloquear um usuário