Skip to content

Commit

Permalink
Fixed compiler options being reset
Browse files Browse the repository at this point in the history
  • Loading branch information
Beanavil committed Jul 6, 2024
1 parent 0a1ac2e commit 7641153
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions samples/core/blur/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1146,6 +1146,7 @@ int main(int argc, char *argv[])
printf("Dual-pass subgroup relative exchange blur\n");

kernel_op[0] = '\0';
strcat(kernel_op, compiler_options);
strcat(kernel_op, "-D USE_SUBGROUP_EXCHANGE_RELATIVE ");
OCLERROR_RET(dual_pass_subgroup_exchange_box_blur(
&s, (cl_int)blur_opts.size),
Expand All @@ -1156,6 +1157,7 @@ int main(int argc, char *argv[])
printf("Dual-pass subgroup exchange blur\n");

kernel_op[0] = '\0';
strcat(kernel_op, compiler_options);
strcat(kernel_op, "-D USE_SUBGROUP_EXCHANGE ");

OCLERROR_RET(dual_pass_subgroup_exchange_box_blur(
Expand Down Expand Up @@ -1199,6 +1201,7 @@ int main(int argc, char *argv[])
printf("Dual-pass subgroup relative exchange Gaussian blur\n");

kernel_op[0] = '\0';
strcat(kernel_op, compiler_options);
strcat(kernel_op, "-D USE_SUBGROUP_EXCHANGE_RELATIVE ");

OCLERROR_RET(dual_pass_subgroup_exchange_kernel_blur(&s, gauss_size,
Expand All @@ -1210,6 +1213,7 @@ int main(int argc, char *argv[])
printf("Dual-pass subgroup exchange Gaussian blur\n");

kernel_op[0] = '\0';
strcat(kernel_op, compiler_options);
strcat(kernel_op, "-D USE_SUBGROUP_EXCHANGE ");

OCLERROR_RET(dual_pass_subgroup_exchange_kernel_blur(&s, gauss_size,
Expand Down

0 comments on commit 7641153

Please sign in to comment.