Skip to content

Commit 70e844d

Browse files
committed
[SYCL] Add more GPU options to available features (intel#1047)
add GPU FAMILY to available features and specify ESIMD raw send tests to gpu-intel-gen9
1 parent 7053a19 commit 70e844d

File tree

5 files changed

+19
-4
lines changed

5 files changed

+19
-4
lines changed

SYCL/ESIMD/histogram_raw_send.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
77
//
88
//===----------------------------------------------------------------------===//
9-
// REQUIRES: gpu
9+
// REQUIRES: gpu-intel-gen9
1010
// UNSUPPORTED: gpu-intel-dg1,cuda,hip
1111
// UNSUPPORTED: ze_debug-1,ze_debug4
1212
// RUN: %clangxx -fsycl %s -o %t.out

SYCL/ESIMD/vadd_raw_send.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
77
//
88
//===----------------------------------------------------------------------===//
9-
// REQUIRES: gpu
9+
// REQUIRES: gpu-intel-gen9
1010
// UNSUPPORTED: gpu-intel-dg1,cuda,hip
1111
// TODO: esimd_emulator fails due to unimplemented 'raw_send' intrinsic
1212
// XFAIL: esimd_emulator

SYCL/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,9 @@ unavailable.
163163
* **aot_tool** - Ahead-of-time compilation tools availability;
164164
* **ocloc**, **opencl-aot** - Specific AOT tool availability;
165165
* **level_zero_dev_kit** - Level_Zero headers and libraries availability;
166+
* **gpu-intel-gen9** - Intel GPU Gen9 availability;
167+
* **gpu-intel-gen11** - Intel GPU Gen11 availability;
168+
* **gpu-intel-gen12** - Intel GPU Gen12 availability;
166169
* **gpu-intel-dg1** - Intel GPU DG1 availability;
167170
* **gpu-intel-dg2** - Intel GPU DG2 availability;
168171
* **gpu-intel-pvc** - Intel GPU PVC availability;

SYCL/lit.cfg.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,23 @@
100100
config.substitutions.append( ('%obj_ext', '.o') )
101101
config.substitutions.append( ('%sycl_include', config.sycl_include ) )
102102

103+
# Intel GPU FAMILY availability
104+
if lit_config.params.get('gpu-intel-gen9', False):
105+
config.available_features.add('gpu-intel-gen9')
106+
if lit_config.params.get('gpu-intel-gen11', False):
107+
config.available_features.add('gpu-intel-gen11')
108+
if lit_config.params.get('gpu-intel-gen12', False):
109+
config.available_features.add('gpu-intel-gen12')
110+
111+
# Intel GPU DEVICE availability
103112
if lit_config.params.get('gpu-intel-dg1', False):
104113
config.available_features.add('gpu-intel-dg1')
105-
106114
if lit_config.params.get('gpu-intel-dg2', False):
107115
config.available_features.add('gpu-intel-dg2')
108-
109116
if lit_config.params.get('gpu-intel-pvc', False):
110117
config.available_features.add('gpu-intel-pvc')
118+
if lit_config.params.get('gpu-intel-ats', False):
119+
config.available_features.add('gpu-intel-ats')
111120

112121
if lit_config.params.get('matrix', False):
113122
config.available_features.add('matrix')

llvm_test_suite_sycl.pl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -641,6 +641,9 @@ sub do_run
641641
if (gpu(['pvc'])) {
642642
$gpu_opts .= " -Dgpu-intel-pvc=1 ";
643643
}
644+
if (gpu(['ats'])) {
645+
$gpu_opts .= " -Dgpu-intel-ats=1 ";
646+
}
644647

645648
# SYCL 2020 device aspects: https://www.khronos.org/registry/SYCL/specs/sycl-2020/html/sycl-2020.html#sec:device-aspects
646649
# ASPECT

0 commit comments

Comments
 (0)