Skip to content

Commit

Permalink
[xla:cpu:xnn] Measure execution time of parallel task to decide the o…
Browse files Browse the repository at this point in the history
…ptimal number of workers

```
```

PiperOrigin-RevId: 716882217
  • Loading branch information
ezhulenev authored and Google-ML-Automation committed Jan 20, 2025
1 parent e0c9285 commit 826c815
Show file tree
Hide file tree
Showing 7 changed files with 472 additions and 151 deletions.
8 changes: 7 additions & 1 deletion xla/backends/cpu/runtime/xnnpack/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,12 @@ cc_library(
deps = [
"//xla/tsl/concurrency:async_value",
"//xla/tsl/lib/math:math_util",
"//xla/tsl/platform:env",
"//xla/tsl/platform:logging",
"@com_google_absl//absl/base:core_headers",
"@com_google_absl//absl/container:fixed_array",
"@com_google_absl//absl/log:check",
"@com_google_absl//absl/time",
"@eigen_archive//:eigen3",
],
)
Expand All @@ -61,11 +65,12 @@ xla_cc_test(
"//xla/tsl/platform:env",
"//xla/tsl/platform:test",
"//xla/tsl/platform:test_benchmark",
"//xla/tsl/platform:test_main",
"@com_google_absl//absl/algorithm:container",
"@com_google_absl//absl/cleanup",
"@com_google_absl//absl/synchronization",
"@com_google_absl//absl/time",
"@com_google_absl//absl/types:span",
"@com_google_googletest//:gtest_main",
"@eigen_archive//:eigen3",
],
)
Expand Down Expand Up @@ -202,6 +207,7 @@ cc_library(
"@com_google_absl//absl/status:statusor",
"@com_google_absl//absl/strings",
"@com_google_absl//absl/strings:str_format",
"@com_google_absl//absl/time",
"@com_google_absl//absl/types:span",
"@eigen_archive//:eigen3",
"@pthreadpool",
Expand Down
Loading

0 comments on commit 826c815

Please sign in to comment.