Skip to content

[UR] Fix isPVC() to handle unsupported UR_DEVICE_INFO_DEVICE_ID#22006

Open
ldorau wants to merge 1 commit into
intel:syclfrom
ldorau:UR_Fix_isPVC_to_handle_unsupported_UR_DEVICE_INFO_DEVICE_ID
Open

[UR] Fix isPVC() to handle unsupported UR_DEVICE_INFO_DEVICE_ID#22006
ldorau wants to merge 1 commit into
intel:syclfrom
ldorau:UR_Fix_isPVC_to_handle_unsupported_UR_DEVICE_INFO_DEVICE_ID

Conversation

@ldorau
Copy link
Copy Markdown
Contributor

@ldorau ldorau commented May 13, 2026

The isPVC() utility used EXPECT_EQ which recorded a test failure when
the adapter does not support UR_DEVICE_INFO_DEVICE_ID (e.g. Native
CPU). This caused the test to be marked FAILED even though it would
subsequently skip via GTEST_SKIP().

Return false instead of asserting when the query fails — if the adapter
cannot report a device ID, the device is clearly not a PVC.

@ldorau ldorau requested a review from a team as a code owner May 13, 2026 08:12
The isPVC() utility used EXPECT_EQ which recorded a test failure when
the adapter does not support UR_DEVICE_INFO_DEVICE_ID (e.g. Native
CPU).  This caused the test to be marked FAILED even though it would
subsequently skip via GTEST_SKIP().

Return false instead of asserting when the query fails — if the adapter
cannot report a device ID, the device is clearly not a PVC.

Signed-off-by: Lukasz Dorau <lukasz.dorau@intel.com>
@github-actions
Copy link
Copy Markdown
Contributor

@intel/llvm-gatekeepers please consider merging

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.

2 participants