Skip to content

Commit 9a5b5be

Browse files
authored
[SYCL][E2E] Follow-up to #20084 (#20100)
Forgot to include this change into the patch. #20084 allows to check the version of CPU RT in E2E tests. E.g. REQUIRES-INTEL-DRIVER: cpu: 2025.20.6.0.04_224945. This patch fixes reading the required cpu version.
1 parent dc2edea commit 9a5b5be

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

sycl/test-e2e/Experimental/clock.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// REQUIRES-INTEL-DRIVER: cpu: 2026
12
// REQUIRES: aspect-usm_shared_allocations
23
// REQUIRES: aspect-ext_oneapi_clock_sub_group || aspect-ext_oneapi_clock_work_group || aspect-ext_oneapi_clock_device
34
// RUN: %{build} -o %t.out

sycl/test-e2e/format.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ def parse_min_intel_driver_req(line_number, line, output):
4242
# Return "win" version as (101, 4502) to ease later comparison.
4343
output["win"] = tuple(map(int, win.group(1).split(".")))
4444

45-
cpu = re.search(r"cpu: *([0-9]{4})", line)
45+
cpu = re.search(r"cpu:\s*([^\s]+)", line)
4646
if cpu:
4747
if "cpu" in output:
4848
raise ValueError('Multiple entries for "cpu" version')
49-
output["cpu"] = int(cpu.group(1))
49+
output["cpu"] = cpu.group(1)
5050

5151
return output
5252

0 commit comments

Comments
 (0)