Skip to content

Commit

Permalink
query the right program object for the compile program build log
Browse files Browse the repository at this point in the history
  • Loading branch information
bashbaug committed Mar 3, 2024
1 parent b877c98 commit 3552595
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/06_ndrangekernelfromfile/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ int main(
compileOptions.empty() ? "(none)" : compileOptions.c_str() );
cl::Program object{ context, kernelString };
object.compile(compileOptions.c_str());
for( auto& device : program.getInfo<CL_PROGRAM_DEVICES>() )
for( auto& device : object.getInfo<CL_PROGRAM_DEVICES>() )
{
printf("Program compile log for device %s:\n",
device.getInfo<CL_DEVICE_NAME>().c_str() );
Expand Down

0 comments on commit 3552595

Please sign in to comment.