diff --git a/samples/06_ndrangekernelfromfile/main.cpp b/samples/06_ndrangekernelfromfile/main.cpp index 8c160d5..3a744d1 100644 --- a/samples/06_ndrangekernelfromfile/main.cpp +++ b/samples/06_ndrangekernelfromfile/main.cpp @@ -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() ) + for( auto& device : object.getInfo() ) { printf("Program compile log for device %s:\n", device.getInfo().c_str() );