We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e831db1 commit 6e8a40aCopy full SHA for 6e8a40a
samples/06_ndrangekernelfromfile/main.cpp
@@ -107,7 +107,7 @@ int main(
107
compileOptions.empty() ? "(none)" : compileOptions.c_str() );
108
cl::Program object{ context, kernelString };
109
object.compile(compileOptions.c_str());
110
- for( auto& device : program.getInfo<CL_PROGRAM_DEVICES>() )
+ for( auto& device : object.getInfo<CL_PROGRAM_DEVICES>() )
111
{
112
printf("Program compile log for device %s:\n",
113
device.getInfo<CL_DEVICE_NAME>().c_str() );
0 commit comments