Skip to content

Commit

Permalink
фикс второго суммирования
Browse files Browse the repository at this point in the history
  • Loading branch information
vatican1 committed Oct 15, 2023
1 parent 7478521 commit f0a30a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main_sum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ int main(int argc, char **argv)
unsigned int sum = 0;
for (int iter = 0; iter < benchmarkingIters; ++iter) {
sum_buffer.writeN(&init, 1);
kernel.exec(gpu::WorkSize(workGroupSize, global_work_size / ("loop_sum" == *it_kernel_name ? 32 : 1)),
kernel.exec(gpu::WorkSize(workGroupSize, global_work_size / ("loop_sum" == *it_kernel_name || "loop_coalesced_sum" == *it_kernel_name ? 32 : 1)),
as_buffer, sum_buffer, n);
t.nextLap();
}
Expand Down

0 comments on commit f0a30a8

Please sign in to comment.