Skip to content

Commit e696051

Browse files
authored
[Matrix] Add new feature flag 'matrix-fp16' (#11667)
If the target device is CPU, the flag requires the support of AMX-FP16 ISA (Granite Rapids or later). 'matrix-xmx8' and 'gpu-intel-pvc' both should imply 'matrix-fp16'. 'gpu-intel-pvc' also implies 'matrix-tf32'. Signed-off-by: Yilong Guo <[email protected]> --------- Signed-off-by: Yilong Guo <[email protected]>
1 parent 6ba7b52 commit e696051

11 files changed

+16
-0
lines changed

sycl/test-e2e/Matrix/Legacy/XMX8/element_wise_all_ops_half.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
//===----------------------------------------------------------------------===//
88
// REQUIRES: aspect-fp16
99
// REQUIRES: matrix-xmx8
10+
// REQUIRES: matrix-fp16
1011

1112
// RUN: %{build} -o %t.out -DSYCL_EXT_ONEAPI_MATRIX_VERSION=1
1213
// RUN: %{run} %t.out

sycl/test-e2e/Matrix/Legacy/XMX8/joint_matrix_half.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
//===----------------------------------------------------------------------===//
88
// REQUIRES: aspect-fp16
99
// REQUIRES: matrix-xmx8
10+
// REQUIRES: matrix-fp16
1011

1112
// RUN: %{build} -o %t.out -DSYCL_EXT_ONEAPI_MATRIX_VERSION=1
1213
// RUN: %{run} %t.out

sycl/test-e2e/Matrix/Legacy/element_wise_all_ops_half.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
//===----------------------------------------------------------------------===//
88
// REQUIRES: aspect-fp16
99
// REQUIRES: matrix
10+
// REQUIRES: matrix-fp16
1011

1112
// RUN: %{build} -o %t.out -DSYCL_EXT_ONEAPI_MATRIX_VERSION=1
1213
// RUN: %{run} %t.out

sycl/test-e2e/Matrix/Legacy/joint_matrix_half.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
//===----------------------------------------------------------------------===//
88
// REQUIRES: aspect-fp16
99
// REQUIRES: matrix
10+
// REQUIRES: matrix-fp16
1011

1112
// RUN: %{build} -o %t.out -DSYCL_EXT_ONEAPI_MATRIX_VERSION=1
1213
// RUN: %{run} %t.out

sycl/test-e2e/Matrix/SG32/element_wise_all_ops_half.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
//===----------------------------------------------------------------------===//
88
// REQUIRES: aspect-fp16
99
// REQUIRES: matrix,gpu
10+
// REQUIRES: matrix-fp16
1011

1112
// RUN: %{build} -o %t.out -DSYCL_EXT_ONEAPI_MATRIX_VERSION=4
1213
// RUN: %{run} %t.out

sycl/test-e2e/Matrix/SG32/joint_matrix_half.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
//===----------------------------------------------------------------------===//
88
// REQUIRES: aspect-fp16
99
// REQUIRES: matrix
10+
// REQUIRES: matrix-fp16
1011

1112
// RUN: %{build} -o %t.out -DSYCL_EXT_ONEAPI_MATRIX_VERSION=4
1213
// RUN: %{run} %t.out

sycl/test-e2e/Matrix/XMX8/element_wise_all_ops_half.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
//===----------------------------------------------------------------------===//
88
// REQUIRES: aspect-fp16
99
// REQUIRES: matrix-xmx8
10+
// REQUIRES: matrix-fp16
1011

1112
// RUN: %{build} -o %t.out -DSYCL_EXT_ONEAPI_MATRIX_VERSION=4
1213
// RUN: %{run} %t.out

sycl/test-e2e/Matrix/XMX8/joint_matrix_half.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
//===----------------------------------------------------------------------===//
88
// REQUIRES: aspect-fp16
99
// REQUIRES: matrix-xmx8
10+
// REQUIRES: matrix-fp16
1011

1112
// RUN: %{build} -o %t.out -DSYCL_EXT_ONEAPI_MATRIX_VERSION=4
1213
// RUN: %{run} %t.out

sycl/test-e2e/Matrix/element_wise_all_ops_half.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
//===----------------------------------------------------------------------===//
88
// REQUIRES: aspect-fp16
99
// REQUIRES: matrix
10+
// REQUIRES: matrix-fp16
1011

1112
// RUN: %{build} -o %t.out -DSYCL_EXT_ONEAPI_MATRIX_VERSION=4
1213
// RUN: %{run} %t.out

sycl/test-e2e/Matrix/joint_matrix_half.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
//===----------------------------------------------------------------------===//
88
// REQUIRES: aspect-fp16
99
// REQUIRES: matrix
10+
// REQUIRES: matrix-fp16
1011

1112
// RUN: %{build} -o %t.out -DSYCL_EXT_ONEAPI_MATRIX_VERSION=4
1213
// RUN: %{run} %t.out

sycl/test-e2e/lit.cfg.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@
119119
config.available_features.add('gpu-intel-dg2')
120120
if lit_config.params.get('gpu-intel-pvc', False):
121121
config.available_features.add('gpu-intel-pvc')
122+
config.available_features.add('matrix-fp16') # PVC implies the support of FP16 matrix
123+
config.available_features.add('matrix-tf32') # PVC implies the support of TF32 matrix
122124

123125
if lit_config.params.get('matrix', False):
124126
config.available_features.add('matrix')
@@ -128,6 +130,10 @@
128130

129131
if lit_config.params.get('matrix-xmx8', False):
130132
config.available_features.add('matrix-xmx8')
133+
config.available_features.add('matrix-fp16') # XMX implies the support of FP16 matrix
134+
135+
if lit_config.params.get('matrix-fp16', False):
136+
config.available_features.add('matrix-fp16')
131137

132138
#support for LIT parameter ze_debug<num>
133139
if lit_config.params.get('ze_debug'):

0 commit comments

Comments
 (0)