Skip to content

[SYCL] Use int instead of pi_mem_advice in (queue|handler)::mem_advise #4100

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 1 commit into from
Jul 15, 2021
Merged

[SYCL] Use int instead of pi_mem_advice in (queue|handler)::mem_advise #4100

merged 1 commit into from
Jul 15, 2021

Conversation

dnmokhov
Copy link
Contributor

@dnmokhov dnmokhov commented Jul 14, 2021

  • Update these API signatures according to the SYCL 2020 spec.
  • Keep queue::mem_advise(const void *, size_t, pi_mem_advice), which
    was available in previous releases, but mark it as deprecated.

Test: intel/llvm-test-suite#359

- Update these API signatures according to the SYCL 2020 spec.
- Keep `queue::mem_advise(const void *, size_t, pi_mem_advice)`, which
  was available in previous releases, but mark it as deprecated.
@dnmokhov dnmokhov marked this pull request as ready for review July 14, 2021 05:06
@dnmokhov dnmokhov requested a review from a team as a code owner July 14, 2021 05:06
@dnmokhov dnmokhov requested a review from dm-vodopyanov July 14, 2021 05:06
Copy link
Contributor

@s-kanaev s-kanaev left a comment

Choose a reason for hiding this comment

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

LGTM

@bader bader merged commit af2bf96 into intel:sycl Jul 15, 2021
AlexeySachkov added a commit to AlexeySachkov/llvm that referenced this pull request Jul 18, 2024
We made a mistake several years ago by introducing `pi_mem_advice`
argument into a public interface in intel#1239.

This mistake was caught a year later and addressed in intel#4100,
but unfortunately instead of removing this incorrect overload, it was
deprecated. Even deprectation was done improperly, because this method
is *not* deprecated in SYCL 2020 - it *doesn't exists* in SYCL 2020.

This PR removes the method completely, even though our messaging was
wrong. The assumption is that there are no actual users who went and
used undocumented non-public `pi_mem_advice` in their codebases.
AlexeySachkov added a commit that referenced this pull request Jul 18, 2024
We made a mistake several years ago by introducing `pi_mem_advice`
argument into a public interface in #1239.

This mistake was caught a year later and addressed in #4100,
but unfortunately instead of removing this incorrect overload, it was
only deprecated. The deprecation wasn't done quite correctly, because
this method is *not* deprecated in SYCL 2020 - it *doesn't exists* in
SYCL 2020.

This PR removes the method completely, even though our messaging was
wrong. The assumption is that there are no actual users who went and
used undocumented non-public `pi_mem_advice` in their codebases.

This is patch is essentially a by-product of #14145 and it is
done to simplify that change, i.e. PI plugins removal should not be
ABI-breaking by itself, we just need to cleanup some of our exported
symbols.
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.

4 participants