Skip to content

[SYCL] Emit a warning message for legacy env vars #2506

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 4 commits into from
Sep 22, 2020

Conversation

bso-intel
Copy link
Contributor

We are deprecating legacy env vars SYCL_BE and SYCL_DEVICE_TYPE.
This PR is intended to inform users about this change during the grace period.

Signed-off-by: Byoungro So [email protected]

We are deprecating legacy env vars SYCL_BE and SYCL_DEVICE_TYPE.
This PR is intended to inform users about this change during the grace period.

Signed-off-by: Byoungro So <[email protected]>
// env vars.
// Emit the deprecation warning message if SYCL_BE or SYCL_DEVICE_TYPE is
// set.
if (SYCLConfig<SYCL_BE>::get() || getenv("SYCL_DEVICE_TYPE")) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Wouldn't it be better to move this code to where these templates are specialized, i.e. in source/detail/config.hpp? There is already needed logic there to only print it once.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I need to check both SYCL_BE and SYCL_DEVICE_TYPE.
Config.hpp only handles SYCL_BE.
Note that this patch only lives a few releases until we really remove the support for SYCL_BE and SYCL_DEVICE_TYPE.
After removal, I will also remove this patch from pi.cpp.

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. I moved the warning message code into config.hpp.

Copy link
Contributor

@romanovvlad romanovvlad left a comment

Choose a reason for hiding this comment

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

LGTM

also, fixed some minor bugs in device selectors.

Signed-off-by: Byoungro So <[email protected]>
@bso-intel bso-intel requested a review from a team as a code owner September 21, 2020 21:33
Signed-off-by: Byoungro So <[email protected]>
Signed-off-by: Byoungro So <[email protected]>
@romanovvlad romanovvlad merged commit 6242160 into intel:sycl Sep 22, 2020
@bso-intel bso-intel deleted the warning branch September 22, 2020 14:48
iclsrc pushed a commit that referenced this pull request Apr 25, 2024
Since SPIR-V 1.6 may be used with `OpFNegate` and with the binary
floating-point comparison instructions (including `OpOrdered` and
`OpUnordered`).

Original commit:
KhronosGroup/SPIRV-LLVM-Translator@6b47e8c4f79aa23
kbenzie added a commit to kbenzie/intel-llvm that referenced this pull request Feb 17, 2025
…ative

[DeviceASAN] Fix urKernelCreateWithNativeHandle segfault
Chenyang-L pushed a commit that referenced this pull request Feb 18, 2025
[DeviceASAN] Fix urKernelCreateWithNativeHandle segfault
iclsrc pushed a commit that referenced this pull request Apr 21, 2025
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