Skip to content

Commit

Permalink
Update //bench:convolution_bench to properly flush the L2 caches be…
Browse files Browse the repository at this point in the history
…tween runs and use the `num_threads` and `benchmark_min_iters` flags.

This also fixes an occasional segfault due to not aligning the `workspace` pointer.

PiperOrigin-RevId: 725129452
  • Loading branch information
gonnet authored and xnnpack-bot committed Feb 10, 2025
1 parent e55b399 commit 8651d51
Show file tree
Hide file tree
Showing 2 changed files with 267 additions and 316 deletions.
2 changes: 1 addition & 1 deletion bench/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ xnnpack_benchmark(
srcs = ["convolution.cc"],
copts = xnnpack_optional_tflite_copts(),
tags = xnnpack_slow_benchmark_tags() + ["nowin32"],
deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(),
deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps() + ["@pthreadpool"],
)

xnnpack_benchmark(
Expand Down
Loading

0 comments on commit 8651d51

Please sign in to comment.