-
Notifications
You must be signed in to change notification settings - Fork 790
[Driver][SYCL] Generalize huge device code driver option name #9888
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
Conversation
Deprecate -fsycl-link-huge-device-code in favor of a new option, -flink-huge-device-code. The new option is identical in functionality but allowed with -fopenmp-targets. This also includes a minor improvement to deprecated handling in order to allow aliasing driver options to be deprecated independently.
d2c2eff
to
a041bda
Compare
// CHECK-LINKER-SCRIPT: "-T" "{{.*}}.ld" | ||
|
||
// Also check that a user-provided linker script may be used: | ||
// RUN: %clangxx -### -fsycl -fsycl-link-huge-device-code %s \ | ||
// RUN: -T custom-user-script.ld 2>&1 | \ | ||
// RUN: FileCheck --check-prefixes=CHECK-USER-SCRIPT %s | ||
// RUN: %clangxx -### -fopenmp -fopenmp-targets=x86_64 %s \ | ||
// RUN: -T custom-user-script.ld 2>&1 | \ | ||
// RUN: FileCheck --check-prefixes=CHECK-USER-SCRIPT %s |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test name is specific to SYCL behaviors - we could either create a new test for OpenMP behaviors or rename this test to something more fitting.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. I decided to rename this test after the new option, with a comment describing that the old option name which is also being tested is deprecated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Merging in an attempt to restart testing after potential infrastructure-related failures.
I don't think that the failing test is related to the change made in this PR. |
@intel/dpcpp-doc-reviewers, could you please take a look? |
HIP Failed Tests (1): Merging this. |
That's a bit odd. Different bug, though. |
Deprecate -fsycl-link-huge-device-code in favor of a new option,
-flink-huge-device-code. The new option is identical in functionality
but allowed with -fopenmp-targets.
This also includes a minor improvement to deprecated handling in order
to allow aliasing driver options to be deprecated independently.