Skip to content

Commit 4af073e

Browse files
committed
Fix conformance test
1 parent 8637eff commit 4af073e

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
@@ -476,9 +476,11 @@ ur_result_t KernelsEnvironment::CreateProgram(
476476
backend == UR_PLATFORM_BACKEND_CUDA) {
477477
// The CUDA and HIP adapters do not support urProgramCreateWithIL so we
478478
// need to use urProgramCreateWithBinary instead.
479+
auto size = binary.size();
480+
auto data = binary.data();
479481
if (auto error = urProgramCreateWithBinary(
480-
hContext, hDevice, binary.size(),
481-
reinterpret_cast<const uint8_t *>(binary.data()), properties,
482+
hContext, 1, &hDevice, &size,
483+
reinterpret_cast<const uint8_t **>(&data), properties,
482484
phProgram)) {
483485
return error;
484486
}

0 commit comments

Comments
 (0)