Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit 0108419

Browse files
authored
[SYCL] Add more GPU options to available features (#1047)
add GPU FAMILY to available features and specify ESIMD raw send tests to gpu-intel-gen9
1 parent edd4388 commit 0108419

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-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: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,19 @@
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')
111118

0 commit comments

Comments
 (0)