@@ -70,7 +70,7 @@ static RT::PiProgram createBinaryProgram(const ContextImplPtr Context,
7070 // FIXME: we don't yet support multiple devices with a single binary.
7171 const detail::plugin &Plugin = Context->getPlugin ();
7272#ifndef _NDEBUG
73- cl_uint NumDevices = 0 ;
73+ pi_uint32 NumDevices = 0 ;
7474 Plugin.call <PiApiKind::piContextGetInfo>(Context->getHandleRef (),
7575 PI_CONTEXT_INFO_NUM_DEVICES,
7676 sizeof (NumDevices), &NumDevices,
@@ -438,7 +438,7 @@ ProgramManager::getClProgramFromClKernel(RT::PiKernel Kernel,
438438 RT::PiProgram Program;
439439 const detail::plugin &Plugin = Context->getPlugin ();
440440 Plugin.call <PiApiKind::piKernelGetInfo>(
441- Kernel, PI_KERNEL_INFO_PROGRAM, sizeof (cl_program ), &Program, nullptr );
441+ Kernel, PI_KERNEL_INFO_PROGRAM, sizeof (RT::PiProgram ), &Program, nullptr );
442442 return Program;
443443}
444444
@@ -449,8 +449,8 @@ string_class ProgramManager::getProgramBuildLog(const RT::PiProgram &Program,
449449 Plugin.call <PiApiKind::piProgramGetInfo>(Program, PI_PROGRAM_INFO_DEVICES, 0 ,
450450 nullptr , &Size);
451451 vector_class<RT::PiDevice> PIDevices (Size / sizeof (RT::PiDevice));
452- Plugin.call <PiApiKind::piProgramGetInfo>(Program, PI_PROGRAM_INFO_DEVICES, Size,
453- PIDevices.data (), nullptr );
452+ Plugin.call <PiApiKind::piProgramGetInfo>(Program, PI_PROGRAM_INFO_DEVICES,
453+ Size, PIDevices.data (), nullptr );
454454 string_class Log = " The program was built for " +
455455 std::to_string (PIDevices.size ()) + " devices" ;
456456 for (RT::PiDevice &Device : PIDevices) {
0 commit comments