We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a360947 commit 9f27046Copy full SHA for 9f27046
samples/99_specconst/main.cpp
@@ -198,6 +198,9 @@ int main(
198
buildOptions.empty() ? "(none)" : buildOptions.c_str() );
199
program.build(buildOptions.c_str());
200
201
+ printf("Setting spec constant to 3.\n");
202
+ program.setSpecializationConstant(100, 3);
203
+
204
kernel = cl::Kernel{ program, kernelName.c_str() };
205
} else {
206
printf("Compiling program with compile options: %s\n",
0 commit comments