We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fab234 commit 1a26508Copy full SHA for 1a26508
unified-runtime/source/adapters/offload/program.cpp
@@ -89,7 +89,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urProgramCreateWithBinary(
89
size_t DevNameLength;
90
OL_RETURN_ON_ERR(olGetDeviceInfoSize(phDevices[0]->OffloadDevice,
91
OL_DEVICE_INFO_NAME, &DevNameLength));
92
- DevName.resize(DevNameLength);
+ DevName.resize(DevNameLength - 1);
93
OL_RETURN_ON_ERR(olGetDeviceInfo(phDevices[0]->OffloadDevice,
94
OL_DEVICE_INFO_NAME, DevNameLength,
95
DevName.data()));
0 commit comments