SWDEV-405329 - Fix cuMask issue for WGP mode

- Enable CUs adjacent pairwise for WGP mode
- In HostQueue::terminate() do not segfault if virtual device hasn't been created

Change-Id: I94402ff333308af5824878086cc238b3993d534d


[ROCm/clr commit: 8c1232124e]
Этот коммит содержится в:
Rakesh Roy
2023-06-27 20:57:49 +05:30
коммит произвёл Rakesh Roy
родитель 47894de700
Коммит f887f2fc6f
2 изменённых файлов: 33 добавлений и 6 удалений
+7 -5
Просмотреть файл
@@ -60,11 +60,13 @@ HostQueue::HostQueue(Context& context, Device& device, cl_command_queue_properti
bool HostQueue::terminate() {
if (AMD_DIRECT_DISPATCH) {
Command* marker = new Marker(*this, true);
if (marker != nullptr) {
marker->enqueue();
marker->awaitCompletion();
marker->release();
if (vdev() != nullptr) {
Command* marker = new Marker(*this, true);
if (marker != nullptr) {
marker->enqueue();
marker->awaitCompletion();
marker->release();
}
}
thread_.Release();
thread_.acceptingCommands_ = false;