Skip to content

Commit dec1146

Browse files
authored
[SYCL][Joint Matrix][E2E] Add few load/store tests for different JointMatrixLoadStoreOpt flag setting (#13873)
This PR adds the following tests: - element_wise_all_ops verification for IGC_JointMatrixLoadStoreOpt=2,1,0. It is split to 3 different tests, since test runtime became too big, so splitting allows to run tests faster in several threads - big combinations, B row-major and annotated_ptr tests with different flag setting (IGC_JointMatrixLoadStoreOpt=0,1) in accordance with the loads/stores implemented in IGC for those flag settings.
1 parent 6f3ce0f commit dec1146

7 files changed

+50
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
//==-------- element_wise_all_ops_1d.cpp - DPC++ joint_matrix ---------==//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
8+
// REQUIRES: aspect-ext_intel_matrix, gpu
9+
10+
// RUN: %{build} -o %t.out
11+
// RUN: env IGC_JointMatrixLoadStoreOpt=1 %{run} %t.out
12+
13+
#include "common.hpp"
14+
#include "element_wise_all_ops_impl.hpp"
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
//==-------- element_wise_all_ops_1d_cont.cpp - DPC++ joint_matrix ---------==//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
8+
// REQUIRES: aspect-ext_intel_matrix, gpu
9+
10+
// RUN: %{build} -o %t.out
11+
// RUN: env IGC_JointMatrixLoadStoreOpt=2 %{run} %t.out
12+
13+
#include "common.hpp"
14+
#include "element_wise_all_ops_impl.hpp"
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
//==---- element_wise_all_ops_scalar.cpp - DPC++ joint_matrix ------==//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
8+
// REQUIRES: aspect-ext_intel_matrix, gpu
9+
10+
// RUN: %{build} -o %t.out
11+
// RUN: env IGC_JointMatrixLoadStoreOpt=0 %{run} %t.out
12+
13+
#include "common.hpp"
14+
#include "element_wise_all_ops_impl.hpp"

sycl/test-e2e/Matrix/joint_matrix_annotated_ptr.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
// RUN: %{build} -o %t.out
1111
// RUN: %{run} %t.out
12+
// RUN: %if gpu %{ env IGC_JointMatrixLoadStoreOpt=0 %{run} %t.out %}
13+
// RUN: %if gpu %{ env IGC_JointMatrixLoadStoreOpt=1 %{run} %t.out %}
1214

1315
#include "common.hpp"
1416

sycl/test-e2e/Matrix/joint_matrix_bfloat16_packedB.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
// RUN: %{build} -o %t.out
1212
// RUN: %{run} %t.out
1313
// RUN: %if gpu %{ env IGC_JointMatrixLoadStoreOpt=2 %{run} %t.out %}
14+
// RUN: %if gpu %{ env IGC_JointMatrixLoadStoreOpt=1 %{run} %t.out %}
15+
// RUN: %if gpu %{ env IGC_JointMatrixLoadStoreOpt=0 %{run} %t.out %}
1416

1517
#include "common.hpp"
1618
#include "joint_matrix_bfloat16_packedB_impl.hpp"

sycl/test-e2e/Matrix/joint_matrix_int8_vnni.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
// RUN: %{build} -o %t.out
1111
// RUN: %{run} %t.out
12+
// RUN: %if gpu %{ env IGC_JointMatrixLoadStoreOpt=0 %{run} %t.out %}
13+
// RUN: %if gpu %{ env IGC_JointMatrixLoadStoreOpt=1 %{run} %t.out %}
1214

1315
#include "common.hpp"
1416

sycl/test-e2e/Matrix/joint_matrix_rowmajorA_rowmajorB.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
// RUN: %{build} -o %t.out
1313
// RUN: %{run} %t.out
1414
// RUN: %if gpu %{ env IGC_JointMatrixLoadStoreOpt=2 %{run} %t.out %}
15+
// RUN: %if gpu %{ env IGC_JointMatrixLoadStoreOpt=1 %{run} %t.out %}
16+
// RUN: %if gpu %{ env IGC_JointMatrixLoadStoreOpt=0 %{run} %t.out %}
1517

1618
// This tests support of row major layout for matrix B which does automatic VNNI
1719
// transform. This is currently only available on AMX and XMX of PVC

0 commit comments

Comments
 (0)