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

add a new query test that uses the new API #1358

Merged
merged 4 commits into from
Nov 21, 2022

Conversation

dkhaldi
Copy link

@dkhaldi dkhaldi commented Oct 31, 2022

The changes that are being tested are introduced in intel/llvm#6981

@dkhaldi
Copy link
Author

dkhaldi commented Nov 1, 2022

It looks like this is an unrelated failure:
[2022-11-01T15:57:25.143Z] ******************** TEST 'SYCL :: Plugin/level_zero_device_scope_events.cpp' FAILED ********************

//
//===----------------------------------------------------------------------===//
// REQUIRES: matrix

Copy link

Choose a reason for hiding this comment

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

Could you please add a comment clarifying what exactly is checked by this test. It is not clear which API is being tested.

Copy link
Author

Choose a reason for hiding this comment

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

We recently updated the matrix API to introduce a new argument "use" in joint_matrix type.
https://github.com/intel/llvm/blob/sycl/sycl/doc/extensions/experimental/sycl_ext_oneapi_matrix/sycl_ext_oneapi_matrix.asciidoc
the old API was moved to https://github.com/intel/llvm/blob/sycl/sycl/doc/extensions/deprecated/sycl_ext_oneapi_matrix_no_use.asciidoc

The specific changes that I am making here are done in intel/llvm#6981

@againull againull self-requested a review November 1, 2022 20:10
constexpr int TN = myparams2::N;
constexpr int TK = myparams2::K;

std::cout << "AMX query sizes are: M " << TM << " N " << TN << " K " << TK

Choose a reason for hiding this comment

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

check the query size as well

Copy link
Author

Choose a reason for hiding this comment

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

done

Choose a reason for hiding this comment

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

@yanfeng3721 if there is "failed" in line48 and another "passed" in line166, can the test infrastructure detect it is failed?

Choose a reason for hiding this comment

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

@yanfeng3721 if there is "failed" in line48 and another "passed" in line166, can the test infrastructure detect it is failed?

Hi @yubingex007-a11y, I think it can be checked by FileCheck. Please refer to usage doc https://llvm.org/docs/CommandGuide/FileCheck.html.
Also, there is an example test as reference: https://github.com/intel/llvm-test-suite/blob/intel/SYCL/DiscardEvents/discard_events_usm.cpp

Choose a reason for hiding this comment

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

// CHECK: The test passed.

#include "discard_events_test_queue_ops.hpp"
#include <iostream>
int main(int Argc, const char *Argv[]) {

  sycl::property_list Props{
      sycl::property::queue::in_order{},
      sycl::ext::oneapi::property::queue::discard_events{}};
  sycl::queue Q(Props);

  TestQueueOperations(Q);

  TestQueueOperationsViaSubmit(Q);

  std::cout << "The test passed." << std::endl;

i think two "// CHECK: passed" should be added according to yanfeng's comments

Copy link

@yubingex007-a11y yubingex007-a11y left a comment

Choose a reason for hiding this comment

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

LGTM

@yubingex007-a11y yubingex007-a11y dismissed their stale review November 8, 2022 14:37

need to digest the code again

Copy link

@yubingex007-a11y yubingex007-a11y left a comment

Choose a reason for hiding this comment

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

LGTM

@dkhaldi
Copy link
Author

dkhaldi commented Nov 21, 2022

Unrelated failures:
SYCL :: KernelAndProgram/kernel-bundle-merge-options-env.cpp is failing on Windows

'SYCL :: ESIMD/api/functional/ctors/ctor_broadcast_fp_extra.cpp is failing on Linux

@againull, Can you help merge?

@againull
Copy link

SYCL :: KernelAndProgram/kernel-bundle-merge-options-env.cpp is failing on Windows

I see internal bug created for this failure - SYCL :: KernelAndProgram/kernel-bundle-merge-options-env.cpp is failing on Windows

Is there a github issue or internal bug created for this failure? - 'SYCL :: ESIMD/api/functional/ctors/ctor_broadcast_fp_extra.cpp is failing on Linux

@againull
Copy link

SYCL :: KernelAndProgram/kernel-bundle-merge-options-env.cpp is failing on Windows

I see internal bug created for this failure - SYCL :: KernelAndProgram/kernel-bundle-merge-options-env.cpp is failing on Windows

Is there a github issue or internal bug created for this failure? - 'SYCL :: ESIMD/api/functional/ctors/ctor_broadcast_fp_extra.cpp is failing on Linux

It looks like ESIMD/api/functional/ctors/ctor_broadcast_fp_extra.cpp is going to covered by #1401

@againull againull merged commit 1192df5 into intel:intel Nov 21, 2022
myler added a commit to myler/llvm-test-suite that referenced this pull request Mar 22, 2023
CMPLRTST-18399:   1. remove feature 'matrix-pvc', use 'matrix' for pvc/amx/spr instead;   2. add feature 'matrix-ats';   3. add checker for current running cpu codename.
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.

4 participants