Skip to content

Commit 0a98b1d

Browse files
committed
Fix conformance test
1 parent e3c332e commit 0a98b1d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/conformance/source/environment.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -570,9 +570,11 @@ ur_result_t KernelsEnvironment::CreateProgram(
570570
backend == UR_PLATFORM_BACKEND_CUDA) {
571571
// The CUDA and HIP adapters do not support urProgramCreateWithIL so we
572572
// need to use urProgramCreateWithBinary instead.
573+
auto size = binary.size();
574+
auto data = binary.data();
573575
if (auto error = urProgramCreateWithBinary(
574-
hContext, hDevice, binary.size(),
575-
reinterpret_cast<const uint8_t *>(binary.data()), properties,
576+
hContext, 1, &hDevice, &size,
577+
reinterpret_cast<const uint8_t **>(&data), properties,
576578
phProgram)) {
577579
return error;
578580
}

0 commit comments

Comments
 (0)