From b6fe5d1f4a58d69e34b3de105e072eca4ce91662 Mon Sep 17 00:00:00 2001 From: Krzysztof Weronski Date: Fri, 24 Apr 2026 09:16:23 +0200 Subject: [PATCH 1/2] Force flushing of test print --- sycl/test-e2e/KernelCompiler/sycl_device_globals.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sycl/test-e2e/KernelCompiler/sycl_device_globals.cpp b/sycl/test-e2e/KernelCompiler/sycl_device_globals.cpp index ff374f0ae5406..9a922773d01f3 100644 --- a/sycl/test-e2e/KernelCompiler/sycl_device_globals.cpp +++ b/sycl/test-e2e/KernelCompiler/sycl_device_globals.cpp @@ -80,7 +80,7 @@ int test_device_global() { auto checkVal = [&](int32_t expected) { val = -1; q.memcpy(&val, dgAddr, dgSize).wait(); - std::cout << "val: " << val << " == " << expected << '\n'; + std::cout << "val: " << val << " == " << expected << std::endl; assert(val == expected); }; From 72f8178d0e065111f41cd878efc76b55f38f52a1 Mon Sep 17 00:00:00 2001 From: Krzysztof Weronski Date: Fri, 24 Apr 2026 11:14:44 +0200 Subject: [PATCH 2/2] [SYCL][E2E][TEST] Unplug sycl_device_globals on NVIDIA RTX 3090 Also, force buffer flush to make debug prints visible. --- .../KernelCompiler/sycl_device_globals.cpp | 3 +++ sycl/test-e2e/lit.cfg.py | 22 +++++++++++++++++-- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/sycl/test-e2e/KernelCompiler/sycl_device_globals.cpp b/sycl/test-e2e/KernelCompiler/sycl_device_globals.cpp index 9a922773d01f3..ab76463666259 100644 --- a/sycl/test-e2e/KernelCompiler/sycl_device_globals.cpp +++ b/sycl/test-e2e/KernelCompiler/sycl_device_globals.cpp @@ -11,6 +11,9 @@ // UNSUPPORTED: opencl && gpu // UNSUPPORTED-TRACKER: GSD-4287 +// UNSUPPORTED: gpu-nvidia-geforce-rtx-3090 +// UNSUPPORTED-TRACKER: https://github.com/intel/llvm/issues/20408 + // RUN: %{build} -o %t.out // RUN: %if hip %{ env SYCL_JIT_AMDGCN_PTX_TARGET_CPU=%{amd_arch} %} %{l0_leak_check} %{run} %t.out diff --git a/sycl/test-e2e/lit.cfg.py b/sycl/test-e2e/lit.cfg.py index c0ff924cdd5cf..7a679cd5812c1 100644 --- a/sycl/test-e2e/lit.cfg.py +++ b/sycl/test-e2e/lit.cfg.py @@ -1014,6 +1014,7 @@ def get_sycl_ls_verbose(sycl_device, env): dev_aspects = [] dev_sg_sizes = [] architectures = set() + device_names = set() # See format.py's parse_min_intel_driver_req for explanation. is_intel_driver = False intel_driver_ver = {} @@ -1055,8 +1056,11 @@ def get_sycl_ls_verbose(sycl_device, env): if re.match(r" *Architecture:", line): _, architecture = line.strip().split(":", 1) architectures.add(architecture.strip()) - if re.match(r" *Name *:", line) and "Level-Zero V2" in line: - features.add("level_zero_v2_adapter") + if re.match(r" *Name *:", line): + _, device_name_str = line.strip().split(":", 1) + device_names.add(device_name_str.strip()) + if "Level-Zero V2" in line: + features.add("level_zero_v2_adapter") # TODO change to the set of backends if re.match(r"\[offload:.*", line) and not is_offload_preferred_backend_set: @@ -1124,10 +1128,24 @@ def get_sycl_ls_verbose(sycl_device, env): ) ) + # Add a normalized device-name feature, e.g. "gpu-nvidia-geforce-rtx-3090" + # derived from the "Name :" field reported by sycl-ls --verbose. + device_name_features = set( + "gpu-" + re.sub(r"[^a-z0-9]+", "-", name.lower()).strip("-") + for name in device_names + ) + if device_name_features: + lit_config.note( + "Device name features for {}: {}".format( + sycl_device, ", ".join(device_name_features) + ) + ) + features.update(aspect_features) features.update(sg_size_features) features.update(architecture_feature) features.update(device_family) + features.update(device_name_features) be, dev = sycl_device.split(":") if dev.isdigit():