Skip to content

Commit 43e1aa2

Browse files
[SYCL] ensuring ZEX_NUMBER_OF_CCS is only used on COMPOSITE hierarchy mode (intel#13067)
ZEX_NUMBER_OF_CCS not yet working in FLAT mode, the new default on PVC. Shoring up the tests in the interim.
1 parent 345c3d0 commit 43e1aa2

File tree

3 files changed

+32
-10
lines changed

3 files changed

+32
-10
lines changed

sycl/test-e2e/Plugin/level_zero_ext_intel_cslice.cpp

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,25 @@
33

44
// RUN: %{build} -o %t.out
55

6-
// RUN: env ZEX_NUMBER_OF_CCS=0:4 UR_L0_DEBUG=1 %{run} %t.out 2>&1 | FileCheck %s --check-prefixes=CHECK-PVC
6+
// TODO - at this time ZEX_NUMBER_OF_CCS is not working with FLAT hierachy,
7+
// which is the new default on PVC. Once it is supported, we'll test on both.
8+
// In the interim, these are the environment vars that must be set to get cslice
9+
// or the extra level of partition_by_affinity_domain with the "EXPOSE_" env
10+
// var.
11+
// DEFINE: %{setup_env} = env ZE_FLAT_DEVICE_HIERARCHY=COMPOSITE ZE_AFFINITY_MASK=0 ZEX_NUMBER_OF_CCS=0:4
712

8-
// RUN: env SYCL_PI_LEVEL_ZERO_EXPOSE_CSLICE_IN_AFFINITY_PARTITIONING=1 \
9-
// RUN: ZEX_NUMBER_OF_CCS=0:4 UR_L0_DEBUG=1 %{run} %t.out 2>&1 | FileCheck %s --check-prefixes=CHECK-PVC
13+
// RUN: %{setup_env} env UR_L0_DEBUG=1 %{run} %t.out 2>&1 | FileCheck %s --check-prefixes=CHECK-PVC
14+
15+
// RUN: %{setup_env} env SYCL_PI_LEVEL_ZERO_EXPOSE_CSLICE_IN_AFFINITY_PARTITIONING=1 \
16+
// RUN: UR_L0_DEBUG=1 %{run} %t.out 2>&1 | FileCheck %s --check-prefixes=CHECK-PVC
1017

1118
// Same, but without using immediate commandlists:
1219

13-
// RUN: env SYCL_PI_LEVEL_ZERO_USE_IMMEDIATE_COMMANDLISTS=0 ZEX_NUMBER_OF_CCS=0:4 \
20+
// RUN: %{setup_env} env SYCL_PI_LEVEL_ZERO_USE_IMMEDIATE_COMMANDLISTS=0 \
1421
// RUN: UR_L0_DEBUG=1 %{run} %t.out 2>&1 | FileCheck %s --check-prefixes=CHECK-PVC
1522

16-
// RUN: env SYCL_PI_LEVEL_ZERO_USE_IMMEDIATE_COMMANDLISTS=0 SYCL_PI_LEVEL_ZERO_EXPOSE_CSLICE_IN_AFFINITY_PARTITIONING=1 \
17-
// RUN: ZEX_NUMBER_OF_CCS=0:4 UR_L0_DEBUG=1 %{run} %t.out 2>&1 | FileCheck %s --check-prefixes=CHECK-PVC
23+
// RUN: %{setup_env} env SYCL_PI_LEVEL_ZERO_USE_IMMEDIATE_COMMANDLISTS=0 SYCL_PI_LEVEL_ZERO_EXPOSE_CSLICE_IN_AFFINITY_PARTITIONING=1 \
24+
// RUN: UR_L0_DEBUG=1 %{run} %t.out 2>&1 | FileCheck %s --check-prefixes=CHECK-PVC
1825

1926
#include <sycl/sycl.hpp>
2027

sycl/test-e2e/Plugin/level_zero_ext_intel_queue_index.cpp

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
// REQUIRES: aspect-ext_intel_device_id
22
// REQUIRES: level_zero
33
// RUN: %{build} -o %t.out
4-
// RUN: env ZEX_NUMBER_OF_CCS=0:4 env UR_L0_DEBUG=1 %{run} %t.out 2>&1 | FileCheck %s --check-prefixes=CHECK-PVC
4+
5+
// TODO - at this time ZEX_NUMBER_OF_CCS is not working with FLAT hierachy,
6+
// which is the new default on PVC. Once it is supported, we'll test on both.
7+
// In the interim, these are the environment vars that must be set to get cslice
8+
// or the extra level of partition_by_affinity_domain with the "EXPOSE_" env
9+
// var.
10+
// DEFINE: %{setup_env} = env ZE_FLAT_DEVICE_HIERARCHY=COMPOSITE ZE_AFFINITY_MASK=0 ZEX_NUMBER_OF_CCS=0:4
11+
12+
// RUN: %{setup_env} env UR_L0_DEBUG=1 %{run} %t.out 2>&1 | FileCheck %s --check-prefixes=CHECK-PVC
513
//
614
// Same with Immediate CommandLists
7-
// RUN: env SYCL_PI_LEVEL_ZERO_EXPOSE_CSLICE_IN_AFFINITY_PARTITIONING=1 env ZEX_NUMBER_OF_CCS=0:4 env UR_L0_DEBUG=1 %{run} %t.out 2>&1 | FileCheck %s --check-prefixes=CHECK-PVC
15+
// RUN: %{setup_env} env SYCL_PI_LEVEL_ZERO_EXPOSE_CSLICE_IN_AFFINITY_PARTITIONING=1 env UR_L0_DEBUG=1 %{run} %t.out 2>&1 | FileCheck %s --check-prefixes=CHECK-PVC
816

917
#include <sycl/sycl.hpp>
1018

sycl/test-e2e/Plugin/level_zero_sub_sub_device.cpp

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
// REQUIRES: gpu-intel-pvc, level_zero
22

33
// RUN: %{build} %level_zero_options -o %t.out
4-
// RUN: env UR_L0_DEBUG=1 env ZEX_NUMBER_OF_CCS=0:4 %{run} %t.out 2>&1 | FileCheck %s
5-
// RUN: env ZEX_NUMBER_OF_CCS=0:4 %{run} %t.out
4+
5+
// TODO - at this time ZEX_NUMBER_OF_CCS is not working with FLAT hierachy,
6+
// which is the new default on PVC. Once it is supported, we'll test on both.
7+
// In the interim, these are the environment vars that must be used in
8+
// conjunction with ZEX_NUMBER_OF_CCS
9+
// DEFINE: %{setup_env} = env ZE_FLAT_DEVICE_HIERARCHY=COMPOSITE ZE_AFFINITY_MASK=0 ZEX_NUMBER_OF_CCS=0:4
10+
11+
// RUN: %{setup_env} env UR_L0_DEBUG=1 %{run} %t.out 2>&1 | FileCheck %s
12+
// RUN: %{setup_env} %{run} %t.out
613

714
// Check that queues created on sub-sub-devices are going to specific compute
815
// engines:

0 commit comments

Comments
 (0)