Skip to content

[SYCL] Add deprecation warnings for unstable keys of SYCL_DEVICE_ALLOWLIST #4455

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

dm-vodopyanov
Copy link
Contributor

This patch adds deprecation warnings for DeviceName and PlatformName
keys of SYCL_DEVICE_ALLOWLIST and suggests using stable BackendName,
DeviceType and DeviceVendorId keys instead of them

…WLIST

This patch adds deprecation warnings for DeviceName and PlatformName
keys of SYCL_DEVICE_ALLOWLIST and suggests using stable BackendName,
DeviceType and DeviceVendorId keys instead of them
@dm-vodopyanov dm-vodopyanov requested a review from a team as a code owner September 1, 2021 16:38
vladimirlaz
vladimirlaz previously approved these changes Sep 2, 2021
Comment on lines 257 to 268
if (IsDeprecatedKeyNameDeviceNameWasUsed &&
IsDeprecatedKeyNamePlatformNameWasUsed) {
std::cerr << "\nWARNING: " << DeprecatedKeyNameDeviceName << " and "
<< DeprecatedKeyNamePlatformName
<< " in SYCL_DEVICE_ALLOWLIST are deprecated. ";
} else if (IsDeprecatedKeyNameDeviceNameWasUsed) {
std::cerr << "\nWARNING: " << DeprecatedKeyNameDeviceName
<< " in SYCL_DEVICE_ALLOWLIST is deprecated. ";
} else if (IsDeprecatedKeyNamePlatformNameWasUsed) {
std::cerr << "\nWARNING: " << DeprecatedKeyNamePlatformName
<< " in SYCL_DEVICE_ALLOWLIST is deprecated. ";
}
Copy link
Contributor

Choose a reason for hiding this comment

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

NIT: Isn't it better to have two independent warnings instead of having a combined one?

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 thought the less warnings user see the better

@bader bader merged commit b27c57c into intel:sycl Sep 7, 2021
@dm-vodopyanov dm-vodopyanov deleted the private/dvodopya/add-deprecation-warnings-for-some-allowlist-keys branch February 10, 2022 14:06
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