Skip to content

Commit ed40919

Browse files
danielkeyserscopybara-github
authored andcommitted
Reduce time for optimize_test and use exactly one (unpinned) thread.
PiperOrigin-RevId: 691013413
1 parent 583bd93 commit ed40919

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

backprop/optimize_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
namespace gcpp {
4040

4141
TEST(OptimizeTest, GradientDescent) {
42-
NestedPools pools(1);
42+
NestedPools pools(1, /*pin=*/0, BoundedSlice(0, 1), BoundedSlice(0, 1));
4343
hwy::ThreadPool& pool = pools.Pool();
4444
std::mt19937 gen(42);
4545

util/threading.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ class NestedPools {
361361
// only impose upper bounds on the number of detected packages and clusters
362362
// rather than defining the actual number of threads.
363363
//
364-
// `pin` is 0 or 1 to force enable/disable, or -1 to choose automatically.
364+
// `pin` is 0 or 1 to force disable/enable, or -1 to choose automatically.
365365
NestedPools(size_t max_threads, int pin = -1,
366366
BoundedSlice package_slice = BoundedSlice(),
367367
BoundedSlice cluster_slice = BoundedSlice(),

0 commit comments

Comments
 (0)