-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SYCL][Joint Matrix][E2E] Add Joint Matrix tests for matrix dimension…
… as function argument and runtime input (#15429) Description: 1. The test joint_matrix_bf16_fill_k_cache_arg_dim.cpp has been added in sycl/test-e2e/Matrix to validate passing matrix dimensions as function arguments, instead of templated parameters, to the joint_matmul function. 2. The test joint_matrix_bf16_fill_k_cache_runtime_dim.cpp has been added in sycl/test-e2e/Matrix to validate that the program works for reading matrix dimensions at runtime instead of compile time. 3. The joint_matrix_bf16_fill_k_cache_impl.hpp file has been modified to support the new tests.
- Loading branch information
1 parent
fda7dc7
commit d29060e
Showing
3 changed files
with
106 additions
and
35 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
sycl/test-e2e/Matrix/joint_matrix_bf16_fill_k_cache_arg_dim.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
//==--- joint_matrix_bf16_fill_k_cache_arg_dim.cpp - DPC++ joint_matrix--------==// | ||
// | ||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
//===----------------------------------------------------------------------===// | ||
// REQUIRES: aspect-ext_intel_matrix | ||
// XFAIL: arch-intel_gpu_pvc | ||
|
||
// RUN: %{build} -o %t_arg_dim_vnni.out %fp-model-precise -DARG_DIM -DVNNI | ||
// RUN: %{run} %t_arg_dim_vnni.out | ||
|
||
// -ffp-model=precise is added to not depend on compiler defaults. | ||
|
||
#include "common.hpp" | ||
#include "joint_matrix_bf16_fill_k_cache_impl.hpp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
sycl/test-e2e/Matrix/joint_matrix_bf16_fill_k_cache_runtime_dim.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
//==--- joint_matrix_bf16_fill_k_cache_runtime_dim.cpp - DPC++ joint_matrix--------==// | ||
// | ||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
//===----------------------------------------------------------------------===// | ||
// REQUIRES: aspect-ext_intel_matrix | ||
// XFAIL: arch-intel_gpu_pvc | ||
|
||
// RUN: %{build} -o %t_runtime_dim_vnni.out %fp-model-precise -DRUNTIME_DIM -DVNNI | ||
// RUN: %{run} %t_runtime_dim_vnni.out 256 | ||
|
||
// -ffp-model=precise is added to not depend on compiler defaults. | ||
|
||
#include "common.hpp" | ||
#include "joint_matrix_bf16_fill_k_cache_impl.hpp" |