Skip to content

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