Skip to content

[SYCL][Test] Remove check_has.cpp dependency on metadata order #9642

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 2 commits into from
May 31, 2023

Conversation

jinge90
Copy link
Contributor

@jinge90 jinge90 commented May 30, 2023

check_has.cpp strictly depends on order of sycl_declared_aspects and srcloc metadata which is not guaranteed by compiler.
This test aims to check IR for device_has(aspect..., we can keep sycl_declared_aspects and remove srcloc to avoid the dependency.

@jinge90 jinge90 requested a review from a team as a code owner May 30, 2023 03:28
check_has.cpp strictly depends on order of sycl_declared_aspects and srcloc
metadata which is not guaranteed by compiler.
This test aims to check IR for device_has(aspect..., we can keep sycl_declared_aspects
and remove srcloc to avoid the dependency.

Signed-off-by: jinge90 <ge.jin@intel.com>
@jinge90 jinge90 temporarily deployed to aws May 30, 2023 03:53 — with GitHub Actions Inactive
@jinge90 jinge90 temporarily deployed to aws May 30, 2023 04:31 — with GitHub Actions Inactive
@jinge90 jinge90 changed the title [SYCL][Test] Remove srcloc in check_has.cpp [SYCL][Test] Remove check_has.cpp dependency on metadata order May 31, 2023
@jinge90 jinge90 requested a review from steffenlarsen May 31, 2023 04:36
@jinge90 jinge90 temporarily deployed to aws May 31, 2023 04:57 — with GitHub Actions Inactive
@jinge90 jinge90 temporarily deployed to aws May 31, 2023 05:35 — with GitHub Actions Inactive
Copy link
Contributor

@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!

@steffenlarsen steffenlarsen merged commit 40ac9cc into intel:sycl May 31, 2023
steffenlarsen pushed a commit that referenced this pull request Nov 9, 2023
Previously, we committed #9642 aiming
to break dependency on metadata order for check_has.cpp but the commit
was broken unexpectedly. This PR re-lands it.

---------

Signed-off-by: jinge90 <ge.jin@intel.com>
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.

2 participants