Skip to content

[SYCL][Graph] Deprecate dynamic_parameter constructors that take a graph #18199

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

Open
wants to merge 1 commit into
base: sycl
Choose a base branch
from

Conversation

Bensuo
Copy link
Contributor

@Bensuo Bensuo commented Apr 25, 2025

  • Tying a dynamic param to a specific graph has no practical purpose and prevents whole graph update usage, so this is the first step to removing it
  • Remove error wording from spec about using dynamic params across multiple graphs
  • Deprecate old constructors and add new ones under breaking changes macro.
  • Ignore graph parameter for current constructors since it is no longer stored.
  • Update tests to ignore deprecation warnings under werror

Full spec changes to detail new behaviour will be done during the next ABI breaking window when these deprecated constructors are also removed.

- Tying a dynamic param to a specific graph has no practical purpose and prevents whole graph update usage, so this is the first step to removing it
- Remove error wording from spec about using dynamic params across multiple graphs
- Deprecate old constructors and add new ones under breaking changes macro.
- Ignore graph parameter for current constructors since it is no longer stored.
- Update tests to ignore deprecation warnings under werror
@Bensuo Bensuo requested review from a team as code owners April 25, 2025 14:05
@Bensuo Bensuo requested review from EwanC and slawekptak April 25, 2025 14:05
@Bensuo Bensuo temporarily deployed to WindowsCILock April 25, 2025 14:06 — with GitHub Actions Inactive
@Bensuo Bensuo temporarily deployed to WindowsCILock April 25, 2025 14:42 — with GitHub Actions Inactive
@Bensuo Bensuo temporarily deployed to WindowsCILock April 25, 2025 14:54 — with GitHub Actions Inactive
@Bensuo Bensuo temporarily deployed to WindowsCILock April 25, 2025 14:54 — with GitHub Actions Inactive
Comment on lines +514 to +518
#ifndef __INTEL_PREVIEW_BREAKING_CHANGES
__SYCL_DEPRECATED("Dynamic_parameter constructors taking a graph object have "
"been deprecated "
"and will be removed in the next ABI breaking window.")
#endif
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 need this, and the same code on line 522-526

@@ -1,4 +1,4 @@
// RUN: %{build} -o %t.out
// RUN: %{build} -Wno-error=deprecated-declarations -Wno-error=deprecated-declarations -o %t.out
Copy link
Contributor

Choose a reason for hiding this comment

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

duplication

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