Skip to content

Commit

Permalink
made binaryop benchmark run on provided stream
Browse files Browse the repository at this point in the history
  • Loading branch information
lamarrr committed Jan 9, 2025
1 parent 578a56f commit 349e8d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cpp/benchmarks/binaryop/polynomials.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ static void BM_binaryop_polynomials(nvbench::state& state)
state.exec(nvbench::exec_tag::sync, [&](nvbench::launch& launch) {
// computes polynomials: (((ax + b)x + c)x + d)x + e... = ax**4 + bx**3 + cx**2 + dx + e....

auto result = cudf::make_column_from_scalar(constants[0], num_rows);
auto result =
cudf::make_column_from_scalar(constants[0], num_rows, launch.get_stream().get_stream());

for (cudf::size_type i = 0; i < order; i++) {
auto product = cudf::binary_operation(result->view(),
Expand Down

0 comments on commit 349e8d3

Please sign in to comment.