Skip to content

[SYCL] Remove esimd_emulator from filters #12428

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 3 commits into from
Jan 24, 2024

Conversation

uditagarwal97
Copy link
Contributor

This PR removes esimd_emulator from device filters and filter selectors. Esimd_emulator is already depreciated.

@uditagarwal97
Copy link
Contributor Author

This PR separates out the removal of esimd_emulator from PR##12384

{{"host", backend::host},
{"opencl", backend::opencl},
{"level_zero", backend::ext_oneapi_level_zero},
{"cuda", backend::ext_oneapi_cuda},
{"hip", backend::ext_oneapi_hip},
{"esimd_emulator", backend::ext_intel_esimd_emulator},
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this might be an ABI break and thus unacceptable.

Copy link
Contributor

Choose a reason for hiding this comment

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

esimd_emulator is not functional starting from 2024.0 - we have removed all the code for emulator, maybe except few places like this one.

It is not ABI break IMO, if it was we would have fails in those special tests that verify presence of global symbols.

Copy link
Contributor

Choose a reason for hiding this comment

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

If return type was part of the mangling, the symbol name would have changed (and that would definitely be an ABI break). I'm not sure what would be the implications of a code compiled expecting 8-element std::array and only looking into a 7-element array.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@aelovikov-intel I went through all the code usages of getSyclBeMap() in DPC++ but did not found any usage that implicitly requires the SYCL backend std::array to have 8-elements. In all the cases, the returned array is traversed using iterators with no hard-coded requirement on its size.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Now that I rethink again, I see your point. Some pre-compiled binaries using libsycl might expect the return value of getSyclBeMap to have 8 elements. So, @aelovikov-intel what do you suggest, should we table this change until the next ABI breaking window?

Copy link
Contributor

@aelovikov-intel aelovikov-intel Jan 22, 2024

Choose a reason for hiding this comment

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

It depends on the usage of this array. Maybe we can just keep this line and apply the rest of the PR. Still, it's better to discuss that with @v-klochkov and @turinevgeny

Copy link
Contributor

Choose a reason for hiding this comment

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

This array is not ESIMD specific. If usage of it creates problems, then we can wait till the next ABI breaking window.
I don't see any urgency in removing the enum now.

@uditagarwal97 uditagarwal97 marked this pull request as ready for review January 18, 2024 17:11
@uditagarwal97 uditagarwal97 requested a review from a team as a code owner January 18, 2024 17:11
@uditagarwal97
Copy link
Contributor Author

@v-klochkov I've reverted the ABI-breaking change for the time being. If rest of the changes looks good, could you please approve this?

Copy link
Contributor

@aelovikov-intel aelovikov-intel left a comment

Choose a reason for hiding this comment

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

If it's good with ESIMD folks, then it's good with me as well.

@aelovikov-intel aelovikov-intel merged commit 9d0888c into intel:sycl Jan 24, 2024
@uditagarwal97 uditagarwal97 deleted the remove_esimd_emu branch March 21, 2024 19:59
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