From a429332484c7c590bc14087b660a14d68d3216f0 Mon Sep 17 00:00:00 2001 From: omarahmed1111 Date: Tue, 24 Sep 2024 13:21:11 +0100 Subject: [PATCH] Prevent accessing devices that was deleted on lit config --- sycl/source/detail/global_handler.cpp | 2 +- sycl/test-e2e/format.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sycl/source/detail/global_handler.cpp b/sycl/source/detail/global_handler.cpp index 7308b2e2d8e07..be34b669122cf 100644 --- a/sycl/source/detail/global_handler.cpp +++ b/sycl/source/detail/global_handler.cpp @@ -329,7 +329,7 @@ void shutdown_early() { void shutdown_win() { shutdown_early(); GlobalHandler *&Handler = GlobalHandler::getInstancePtr(); - Handler->unloadPlugins(); + Handler->unloadAdapters(); } #else void shutdown_late() { diff --git a/sycl/test-e2e/format.py b/sycl/test-e2e/format.py index e0cf41d8b118f..11fab83a5bf13 100644 --- a/sycl/test-e2e/format.py +++ b/sycl/test-e2e/format.py @@ -278,7 +278,7 @@ def get_extra_env(sycl_devices): test, litConfig, useExternalSh, script, tmpBase ) - if len(devices_for_test) > 1: + if len(devices_for_test) != 1: return result # Single device - might be an XFAIL.