Commit 00b7b95
Fix IL_VERSION query to include null terminator (#21600)
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.1 parent 186a2fa commit 00b7b95
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1027 | 1027 | | |
1028 | 1028 | | |
1029 | 1029 | | |
1030 | | - | |
| 1030 | + | |
1031 | 1031 | | |
1032 | 1032 | | |
1033 | 1033 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1113 | 1113 | | |
1114 | 1114 | | |
1115 | 1115 | | |
1116 | | - | |
| 1116 | + | |
1117 | 1117 | | |
1118 | 1118 | | |
1119 | 1119 | | |
| |||
0 commit comments