Skip to content

[UR][CUDA] Fix IL_VERSION query to include null terminator#21600

Open
kekaczma wants to merge 1 commit intosyclfrom
fix-cuda-il-version
Open

[UR][CUDA] Fix IL_VERSION query to include null terminator#21600
kekaczma wants to merge 1 commit intosyclfrom
fix-cuda-il-version

Conversation

@kekaczma
Copy link
Contributor

The UR_DEVICE_INFO_IL_VERSION query was returning PTX ISA version string using ILVersion.data() and ILVersion.size(), which did not include the null terminator. This caused test failures because the conformance test expects the returned string to be null-terminated.

Changed to use ILVersion.c_str() to return a properly null-terminated string, consistent with other string properties in the same file.

This fix enables the SuccessILVersion conformance test for CUDA adapter.

The UR_DEVICE_INFO_IL_VERSION query was returning PTX ISA version string
using ILVersion.data() and ILVersion.size(), which did not include the
null terminator. This caused test failures because the conformance test
expects the returned string to be null-terminated.

Changed to use ILVersion.c_str() to return a properly null-terminated
string, consistent with other string properties in the same file.

This fix enables the SuccessILVersion conformance test for CUDA adapter.
@kekaczma kekaczma marked this pull request as ready for review March 24, 2026 09:13
@kekaczma kekaczma requested review from a team as code owners March 24, 2026 09:13
@kekaczma kekaczma requested a review from pbalcer March 24, 2026 09:13
@github-actions
Copy link
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