-
Notifications
You must be signed in to change notification settings - Fork 788
[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
Conversation
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]>
sycl/source/detail/pi.cpp
Outdated
// 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")) { |
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.
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.
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.
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.
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.
Done. I moved the warning message code into config.hpp.
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
also, fixed some minor bugs in device selectors. Signed-off-by: Byoungro So <[email protected]>
Signed-off-by: Byoungro So <[email protected]>
Signed-off-by: Byoungro So <[email protected]>
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
…ative [DeviceASAN] Fix urKernelCreateWithNativeHandle segfault
[DeviceASAN] Fix urKernelCreateWithNativeHandle segfault
…nstruction (#3108) This is a follow-up fix to #2506 Original commit: KhronosGroup/SPIRV-LLVM-Translator@7c149b86978f8fc
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]