Skip to content

Commit 5ac2799

Browse files
[SYCL][Matrix][E2E] Add element_wise_all_sizes_no_split.cpp test (#12081)
This patch adds version of element_wise_all_sizes.cpp test with disabled device code split. It is known that the code with disabled device code split fails on GPU due to a bug in IGC. We need to test such case.
1 parent 56f8d38 commit 5ac2799

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
//==-------- element_wise_all_sizes_no_split.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+
// This is a version of element_wise_all_sizes test with disabled device code
9+
// split to test against fixed bug in IGC
10+
11+
// REQUIRES: matrix-xmx8
12+
13+
// TODO: Currently fails and regularly times out on DG2. Re-enable when this has
14+
// been addressed.
15+
// UNSUPPORTED: gpu-intel-dg2
16+
17+
// RUN: %{build} -fsycl-device-code-split=off -o %t.out
18+
// RUN: %{run} %t.out
19+
20+
#include <iostream>
21+
#include <random>
22+
#include <sycl/sycl.hpp>
23+
24+
using namespace sycl;
25+
using namespace sycl::ext::oneapi::experimental::matrix;
26+
using bfloat16 = sycl::ext::oneapi::bfloat16;
27+
28+
#define SG_SZ 8
29+
constexpr size_t TN = 8;
30+
31+
#include "../element_wise_all_sizes_impl.hpp"

0 commit comments

Comments
 (0)