Skip to content

[SYCL][Driver] Mark DeviceLib option as deprecated #18581

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 14 commits into
base: sycl
Choose a base branch
from

Conversation

jinge90
Copy link
Contributor

@jinge90 jinge90 commented May 21, 2025

We decide to remove sycl device library jit link path, the 1st step is to mark all related driver option as 'deprecated' and cleared all tests using these options.

@jinge90 jinge90 requested a review from a team as a code owner May 21, 2025 08:08
@jinge90 jinge90 requested a review from mdtoguchi May 21, 2025 08:09
@@ -7036,19 +7036,22 @@ def fsycl_dead_args_optimization : Flag<["-"], "fsycl-dead-args-optimization">,
def fno_sycl_dead_args_optimization : Flag<["-"], "fno-sycl-dead-args-optimization">,
HelpText<"Disables elimination of DPC++ dead kernel arguments">;
def fsycl_device_lib_EQ : CommaJoined<["-"], "fsycl-device-lib=">,
Flags<[NoXarchOption]>,
Flags<[Deprecated]>,
Copy link
Contributor

Choose a reason for hiding this comment

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

@jinge90, there is also an associated test clang/test/Driver/sycl-deprecated.cpp can that test be updated?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi, @mdtoguchi
The sycl-deprecated.cpp is updated.
Thanks very much.

@jinge90 jinge90 requested a review from a team as a code owner May 30, 2025 06:05
@jinge90 jinge90 requested a review from sergey-semenov May 30, 2025 06:05
@jinge90 jinge90 temporarily deployed to WindowsCILock May 30, 2025 06:05 — with GitHub Actions Inactive
@jinge90 jinge90 temporarily deployed to WindowsCILock May 30, 2025 07:35 — with GitHub Actions Inactive
Signed-off-by: jinge90 <[email protected]>
@jinge90 jinge90 temporarily deployed to WindowsCILock May 30, 2025 08:12 — with GitHub Actions Inactive
@jinge90 jinge90 temporarily deployed to WindowsCILock May 30, 2025 08:12 — with GitHub Actions Inactive
@jinge90 jinge90 temporarily deployed to WindowsCILock June 12, 2025 07:20 — with GitHub Actions Inactive
Signed-off-by: jinge90 <[email protected]>
@jinge90 jinge90 temporarily deployed to WindowsCILock June 17, 2025 07:32 — with GitHub Actions Inactive
Signed-off-by: jinge90 <[email protected]>
// RUN: %clangxx -fsycl -fsycl-device-lib-jit-link %s -### 2>&1 \
// RUN: | FileCheck %s --check-prefix=CHECK -DOPTION=-fsycl-device-lib-jit-link
// RUN: %clangxx -fsycl -fno-sycl-device-lib-jit-link %s -### 2>&1 \
// RUN: | FileCheck %s --check-prefix=CHECK -DOPTION=-fno-sycl-device-lib-jit-link
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add tests for -fno-sycl-device-lib and -fsycl-device-lib deprecation as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.
Thanks very much.

@jinge90 jinge90 requested a review from mdtoguchi June 18, 2025 03:06
@jinge90 jinge90 temporarily deployed to WindowsCILock June 18, 2025 03:24 — with GitHub Actions Inactive
@jinge90 jinge90 temporarily deployed to WindowsCILock June 19, 2025 01:38 — with GitHub Actions Inactive
@jinge90 jinge90 temporarily deployed to WindowsCILock June 19, 2025 02:12 — with GitHub Actions Inactive
@jinge90 jinge90 temporarily deployed to WindowsCILock June 19, 2025 02:12 — with GitHub Actions Inactive
@jinge90 jinge90 requested a review from a team June 19, 2025 08:48
@jinge90
Copy link
Contributor Author

jinge90 commented Jun 19, 2025

Hi, @mdtoguchi and @sergey-semenov
Could you help review this PR?
Thanks very much.

@@ -37,120 +37,6 @@
// SYCL_DEVICE_LIB_LINK_DEFAULT-SAME: "{{.*}}libsycl-fallback-imf-fp64.bc"
// SYCL_DEVICE_LIB_LINK_DEFAULT-SAME: "{{.*}}libsycl-fallback-imf-bf16.bc"

/// ###########################################################################
Copy link
Contributor

Choose a reason for hiding this comment

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

Why clear out the -fsycl-device-lib-jit-link testing? We have only marked as deprecated with the intention to remove - but it hasn't been removed yet.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi, @mdtoguchi
I kept all tests untouched but found all test cases using this deprecated option would lead to build failure in pre-ci when some strict cflags are added such as "-Werror=xxx", so I cleared all these tests by removing the option.
Removing -fsycl-device-lib-ji-link testing in driver lit test is just for aligning for sycl e2e tests, do you think we should keep it for now and remove then until we finally removed this option? If so, I will revert the clang driver lit test change.

Thanks very much.

Copy link
Contributor

Choose a reason for hiding this comment

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

@jinge90, yes please revert the driver test removal, as the functionality is still there until we do a full removal of the option and associated behavior.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi, @mdtoguchi
The driver lit test changes are reverted.
Thanks very much.

@jinge90 jinge90 requested a review from mdtoguchi June 20, 2025 01:53
@jinge90 jinge90 temporarily deployed to WindowsCILock June 23, 2025 02:15 — with GitHub Actions Inactive
Signed-off-by: jinge90 <[email protected]>
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