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

Add PVC tests and move XMX8 tests to a new folder #1347

Merged
merged 11 commits into from
Nov 9, 2022

Conversation

dkhaldi
Copy link

@dkhaldi dkhaldi commented Oct 25, 2022

No description provided.

@dkhaldi dkhaldi requested a review from a team as a code owner October 25, 2022 17:36
@dkhaldi
Copy link
Author

dkhaldi commented Oct 26, 2022

@yubingex007-a11y, @myler please review

@dkhaldi
Copy link
Author

dkhaldi commented Oct 26, 2022

failed test SYCL :: KernelAndProgram/multiple-kernel-linking.cpp unrelated to this change

@myler
Copy link

myler commented Nov 1, 2022

The matrix-xmx8 feature config looks good to me.

@@ -89,14 +89,14 @@ void matrix_sum_rows(queue q, big_matrix<T, M, N> &B, nd_range<2> &r) {
for (int i = 0; i < data.length() / (TK / 4); i++) { // 4 per row
// i*SG_SIZE index is found based on the round robin
// distribution we are using in the implementation
sum_local_rows[row + global_idx * (TK / 4)] += data[i + row * 4]
sum_local_rows[row + global_idx * (TK / 4)] += data[i + row * 4];
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@myler, this code was missing the semi colon but we were not getting the analysis that this test is failing at compile time.
How can we improve sharing the analysis of failures on the matrix code?

@dkhaldi
Copy link
Author

dkhaldi commented Nov 2, 2022

@againull, SYCL :: KernelAndProgram/kernel-bundle-merge-options-env.cpp is currently failing and unrelated to the changes I am making here.
Can you help approve/merge?

@dkhaldi
Copy link
Author

dkhaldi commented Nov 3, 2022

@intel/llvm-reviewers-runtime, can you please help merge this?
SYCL :: KernelAndProgram/kernel-bundle-merge-options-env.cpp is currently failing and unrelated to the changes I am making here.

@steffenlarsen
Copy link

Am I reading the tests correctly that the only differences between the existing tests and their XMX variants are the SG_SIZE and LIT feature requirements? If so, it may be easier to maintain the tests if the test implementations are instead moved to common header files that do not define the SG_SIZE macro.

For example for SYCL/Matrix/XMX8/element_wise_all_ops_bf16.cpp and SYCL/Matrix/element_wise_all_ops_bf16.cpp you would add a common header element_wise_all_ops_bf16_impl.hpp with the test implementation without SG_SIZE and then change the .cpp files to something like

//==----------- element_wise_all_ops_bf16.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: matrix
// RUN: %clangxx -fsycl %s -o %t.out
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out

#define SG_SIZE 16

#include "element_wise_all_ops_bf16_impl.hpp"

@dkhaldi
Copy link
Author

dkhaldi commented Nov 7, 2022

Am I reading the tests correctly that the only differences between the existing tests and their XMX variants are the SG_SIZE and LIT feature requirements? If so, it may be easier to maintain the tests if the test implementations are instead moved to common header files that do not define the SG_SIZE macro.

This is a very good suggestion. I just made the change.
@steffenlarsen, can you please take a look?

Copy link

@steffenlarsen steffenlarsen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 😄

@againull
Copy link

againull commented Nov 8, 2022

@dkhaldi Could tyu please fix clang-format failure.

@dkhaldi
Copy link
Author

dkhaldi commented Nov 8, 2022

@dkhaldi Could tyu please fix clang-format failure.

@againull done

@steffenlarsen
Copy link

Failures are unrelated and are most likely due to out-of-sync build being used with newer tests. Merging this.

@steffenlarsen steffenlarsen merged commit 3d696bb into intel:intel Nov 9, 2022
@dkhaldi dkhaldi deleted the pvctests branch November 15, 2022 20:29
myler pushed a commit to myler/llvm-test-suite that referenced this pull request Mar 22, 2023
Disable ESIMD/vec_arg_call_conv* for xmain and xmain-rel
myler pushed a commit to myler/llvm-test-suite that referenced this pull request Mar 22, 2023
aelovikov-intel pushed a commit to aelovikov-intel/llvm that referenced this pull request Mar 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants