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

[SYCL][Matrix]Add test for odd sizes #1523

Closed
wants to merge 4 commits into from
Closed

Conversation

dkhaldi
Copy link

@dkhaldi dkhaldi commented Jan 18, 2023

No description provided.

@dkhaldi dkhaldi requested a review from a team as a code owner January 18, 2023 02:45
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out

// XFAIL: gpu

Choose a reason for hiding this comment

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

could you please clarify what is the reason for xfail on gpu? Is there lack of support?

Copy link
Author

Choose a reason for hiding this comment

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

Yes, there is lack of support of these sizes on the GPU

// init_and_multiply<int8_t, int32_t, 4, 5, 16, 32>();
// init_and_multiply<int8_t, int32_t, 4, 6, 16, 32>();
// init_and_multiply<int8_t, int32_t, 4, 7, 16, 32>();
// init_and_multiply<int8_t, int32_t, 4, 8, 16, 32>();

Choose a reason for hiding this comment

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

why do we have many lines commented out? What we need/wait to enable them?

Copy link
Author

Choose a reason for hiding this comment

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

I uncommented them. All these calls with different sizes need support to remove the xfail

for (int i = 0; i < MATRIX_M; i++) {
for (int j = 0; j < MATRIX_N; j++) {
if constexpr (std::is_same_v<Ta, bfloat16> && std::is_same_v<Tc, float>) {
if ((fabs(C[i][j]) - fabs(D[i][j])) > BF16_EPSILON) {

Choose a reason for hiding this comment

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

It should be: "(fabs(C[i][j] - D[i][j])) > BF16_EPSILON" otherwise the test will always pass when values in C are smaller or equal to those in D.

Copy link
Author

Choose a reason for hiding this comment

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

done

@dkhaldi
Copy link
Author

dkhaldi commented Mar 20, 2023

was replaced by #1628

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