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

[ESIMD] Add tests for new esimd::xmx:dpas API #1281

Merged
merged 3 commits into from
Sep 23, 2022

Conversation

v-klochkov
Copy link

Signed-off-by: Vyacheslav N Klochkov [email protected]

@v-klochkov v-klochkov requested a review from a team as a code owner September 21, 2022 09:19
@v-klochkov
Copy link
Author

/verify with intel/llvm#6834

@JackAKirk
Copy link

FYI I am seeing the same windows failures in intel/llvm#6532.

Signed-off-by: Vyacheslav N Klochkov <[email protected]>
@v-klochkov v-klochkov force-pushed the dpas_low_level_api_lit branch from 618363b to b9bbed9 Compare September 21, 2022 22:27
Signed-off-by: Vyacheslav N Klochkov <[email protected]>
@v-klochkov
Copy link
Author

/verify with intel/llvm#6834

@v-klochkov
Copy link
Author

CI reported these fails, unrelated to 2 new tests:

[2022-09-22T00:34:31.113Z] Failed Tests (3):
[2022-09-22T00:34:31.113Z] SYCL :: Config/kernel_from_file.cpp
[2022-09-22T00:34:31.113Z] SYCL :: DeviceLib/separate_compile_test.cpp
[2022-09-22T00:34:31.113Z] SYCL :: SeparateCompile/test.cpp

Passed &= tests<8, 8, s2, s4>(Q, Print);
Passed &= tests<8, 1, s2, s8>(Q, Print);
Passed &= tests<8, 4, s8, s4>(Q, Print);

Choose a reason for hiding this comment

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

For follow-up in later PR: please test other supported types

// Test unsigned 2-bit integers./
Passed &= tests<8, 8, u2, u2>(Q, Print);
Passed &= tests<8, 4, u2, u2>(Q, Print);
// TODO: enable this case when the problem with simd constructor

Choose a reason for hiding this comment

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

Is there internal tracker on this problem?

Copy link
Author

Choose a reason for hiding this comment

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

Yes, I created one.

// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
// REQUIRES: gpu-intel-pvc || esimd_emulator

Choose a reason for hiding this comment

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

For follow-up in later PR: dg2 should also work, right?

Copy link
Author

Choose a reason for hiding this comment

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

There will be more tests with ExecutionSize=8 (testing ACM/dg2)

bool Print = argc > 1 && std::string(argv[1]) == "-debug";
bool Passed = true;

// Test unsigned 2-bit integers./

Choose a reason for hiding this comment

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

typo - 2-bit integer -> half float

Copy link
Author

Choose a reason for hiding this comment

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

Will fix in next PR adding more tests. Thank you.

Copy link
Author

Choose a reason for hiding this comment

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

Fixed here: #1291


// This test verifies DPAS support for 2,4,8-bit integers.

#include "dpas_common.hpp"

Choose a reason for hiding this comment

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

Nit: just curious - why not simply template by element types in a single test source instead of including common header?

Copy link
Author

Choose a reason for hiding this comment

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

just wanted to have different tests for different groups of types: int separate, fp16 - separate, etc.
Otherwise, it would be too big test running too long.
dpas_int.cpp already has too many test cases in it. And it needs some more extension to test the cases when precision is not specified.

Copy link

@kbobrovs kbobrovs left a comment

Choose a reason for hiding this comment

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

LGTM, but a follow-up PR is desirable.

@v-klochkov v-klochkov merged commit 78be3ae into intel:intel Sep 23, 2022
@v-klochkov v-klochkov deleted the dpas_low_level_api_lit branch September 23, 2022 01:31
myler pushed a commit to myler/llvm-test-suite that referenced this pull request Mar 22, 2023
* [ESIMD] Add tests for new esimd::xmx:dpas API

Signed-off-by: Vyacheslav N Klochkov <[email protected]>
myler pushed a commit to myler/llvm-test-suite that referenced this pull request Mar 22, 2023
[ESIMD] Remove invalid rules in some of test .xmls
aelovikov-intel pushed a commit to aelovikov-intel/llvm that referenced this pull request Mar 27, 2023
…1281)

* [ESIMD] Add tests for new esimd::xmx:dpas API

Signed-off-by: Vyacheslav N Klochkov <[email protected]>
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.

3 participants