Skip to content

[SYCL] Add marray support to rest math built-in functions #8912

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Apr 6, 2023

Conversation

dm-vodopyanov
Copy link
Contributor

This patch adds support of sycl::marray to the rest of math built-in functions (SYCL 2020, Table 175), and adds missing tests for math and common functions for #8631 to reduce number of upcoming cherry-picks.

This patch adds support of sycl::marray to the rest math built-in
functions (SYCL 2020, Table 175), and adds missing tests for math and
common functions for intel#8631 to reduce
number of upcoming cherry-picks.
@dm-vodopyanov dm-vodopyanov requested a review from a team as a code owner March 31, 2023 17:06
@dm-vodopyanov dm-vodopyanov requested review from sergey-semenov and a team March 31, 2023 17:07
@dm-vodopyanov dm-vodopyanov temporarily deployed to aws March 31, 2023 18:34 — with GitHub Actions Inactive
@dm-vodopyanov dm-vodopyanov temporarily deployed to aws March 31, 2023 20:08 — with GitHub Actions Inactive
@dm-vodopyanov
Copy link
Contributor Author

@sergey-semenov, ping.

@dm-vodopyanov dm-vodopyanov temporarily deployed to aws April 4, 2023 11:49 — with GitHub Actions Inactive
Copy link
Contributor

@sergey-semenov sergey-semenov left a comment

Choose a reason for hiding this comment

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

LGTM overall


#include <sycl/sycl.hpp>

#define TEST(FUNC, MARRAY_ELEM_TYPE, DIM, EXPECTED, DELTA, ...) \
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we have to use a macro here? Seems like we can get away with a function template, which would be preferrable. The same goes for the other test file.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I would suggest to implement this in a separate PR for all marray builtin tests, including these.

@dm-vodopyanov dm-vodopyanov temporarily deployed to aws April 4, 2023 12:20 — with GitHub Actions Inactive
@dm-vodopyanov dm-vodopyanov temporarily deployed to aws April 4, 2023 13:10 — with GitHub Actions Inactive
@dm-vodopyanov dm-vodopyanov temporarily deployed to aws April 4, 2023 13:42 — with GitHub Actions Inactive
@dm-vodopyanov dm-vodopyanov temporarily deployed to aws April 4, 2023 14:17 — with GitHub Actions Inactive
@dm-vodopyanov dm-vodopyanov temporarily deployed to aws April 4, 2023 14:48 — with GitHub Actions Inactive
@dm-vodopyanov dm-vodopyanov temporarily deployed to aws April 4, 2023 15:43 — with GitHub Actions Inactive
@dm-vodopyanov dm-vodopyanov temporarily deployed to aws April 4, 2023 16:25 — with GitHub Actions Inactive
@dm-vodopyanov dm-vodopyanov temporarily deployed to aws April 4, 2023 16:58 — with GitHub Actions Inactive
@dm-vodopyanov dm-vodopyanov temporarily deployed to aws April 4, 2023 17:47 — with GitHub Actions Inactive
@dm-vodopyanov dm-vodopyanov temporarily deployed to aws April 4, 2023 22:02 — with GitHub Actions Inactive
@dm-vodopyanov dm-vodopyanov temporarily deployed to aws April 4, 2023 22:45 — with GitHub Actions Inactive
@dm-vodopyanov dm-vodopyanov temporarily deployed to aws April 5, 2023 17:04 — with GitHub Actions Inactive
@dm-vodopyanov dm-vodopyanov temporarily deployed to aws April 5, 2023 18:42 — with GitHub Actions Inactive
@dm-vodopyanov dm-vodopyanov temporarily deployed to aws April 5, 2023 20:42 — with GitHub Actions Inactive
Debugging test failures
@dm-vodopyanov dm-vodopyanov temporarily deployed to aws April 5, 2023 21:56 — with GitHub Actions Inactive
@dm-vodopyanov dm-vodopyanov temporarily deployed to aws April 5, 2023 22:33 — with GitHub Actions Inactive
@dm-vodopyanov dm-vodopyanov temporarily deployed to aws April 6, 2023 11:26 — with GitHub Actions Inactive
@dm-vodopyanov dm-vodopyanov temporarily deployed to aws April 6, 2023 12:08 — with GitHub Actions Inactive
@dm-vodopyanov dm-vodopyanov temporarily deployed to aws April 6, 2023 13:20 — with GitHub Actions Inactive
@dm-vodopyanov dm-vodopyanov temporarily deployed to aws April 6, 2023 13:51 — with GitHub Actions Inactive
@dm-vodopyanov
Copy link
Contributor Author

All failures are unrelated:

Failed Tests (3):
SYCL :: Matrix/element_wise_all_ops_cuda_legacy.cpp
SYCL :: Matrix/element_wise_wi_marray_legacy.cpp
SYCL :: Matrix/joint_matrix_tensorcores_legacy.cpp

Jenkins/Precommit (created internal ticket)

@dm-vodopyanov dm-vodopyanov merged commit 2953d25 into intel:sycl Apr 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants