Skip to content

Commit 9f27046

Browse files
committed
add one more check
1 parent a360947 commit 9f27046

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

samples/99_specconst/main.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,9 @@ int main(
198198
buildOptions.empty() ? "(none)" : buildOptions.c_str() );
199199
program.build(buildOptions.c_str());
200200

201+
printf("Setting spec constant to 3.\n");
202+
program.setSpecializationConstant(100, 3);
203+
201204
kernel = cl::Kernel{ program, kernelName.c_str() };
202205
} else {
203206
printf("Compiling program with compile options: %s\n",

0 commit comments

Comments
 (0)