Skip to content

Commit 6e8a40a

Browse files
authored
query the right object for the compile log (#138)
1 parent e831db1 commit 6e8a40a

File tree

1 file changed

+1
-1
lines changed
  • samples/06_ndrangekernelfromfile

1 file changed

+1
-1
lines changed

samples/06_ndrangekernelfromfile/main.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ int main(
107107
compileOptions.empty() ? "(none)" : compileOptions.c_str() );
108108
cl::Program object{ context, kernelString };
109109
object.compile(compileOptions.c_str());
110-
for( auto& device : program.getInfo<CL_PROGRAM_DEVICES>() )
110+
for( auto& device : object.getInfo<CL_PROGRAM_DEVICES>() )
111111
{
112112
printf("Program compile log for device %s:\n",
113113
device.getInfo<CL_DEVICE_NAME>().c_str() );

0 commit comments

Comments
 (0)