Home
last modified time | relevance | path

Searched refs:kNumShards (Results 1 – 6 of 6) sorted by relevance

/external/llvm-project/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_thread_registry_test.cpp152 static const int kNumShards = 25; variable
154 static int num_created[kNumShards + 1];
155 static int num_started[kNumShards + 1];
156 static int num_joined[kNumShards + 1];
204 pthread_t threads[kNumShards]; in ThreadedTestRegistry()
205 RunThreadArgs args[kNumShards]; in ThreadedTestRegistry()
206 for (int i = 0; i < kNumShards; i++) { in ThreadedTestRegistry()
211 for (int i = 0; i < kNumShards; i++) { in ThreadedTestRegistry()
219 for (int i = 1; i <= kNumShards; i++) { in ThreadedTestRegistry()
232 kThreadsPerShard * kNumShards + 1, 10); in TEST()
/external/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_thread_registry_test.cc153 static const int kNumShards = 25; variable
155 static int num_created[kNumShards + 1];
156 static int num_started[kNumShards + 1];
157 static int num_joined[kNumShards + 1];
204 pthread_t threads[kNumShards]; in ThreadedTestRegistry()
205 RunThreadArgs args[kNumShards]; in ThreadedTestRegistry()
206 for (int i = 0; i < kNumShards; i++) { in ThreadedTestRegistry()
211 for (int i = 0; i < kNumShards; i++) { in ThreadedTestRegistry()
219 for (int i = 1; i <= kNumShards; i++) { in ThreadedTestRegistry()
232 kThreadsPerShard * kNumShards + 1, 10); in TEST()
/external/tensorflow/tensorflow/core/lib/io/
Dcache.cc349 static const int kNumShards = 1 << kNumShardBits; variable
353 LRUCache shard_[kNumShards];
365 const size_t per_shard = (capacity + (kNumShards - 1)) / kNumShards; in ShardedLRUCache()
366 for (int s = 0; s < kNumShards; s++) { in ShardedLRUCache()
396 for (int s = 0; s < kNumShards; s++) { in Prune()
402 for (int s = 0; s < kNumShards; s++) { in TotalCharge()
/external/tensorflow/tensorflow/core/kernels/data/
Dshard_dataset_op.h27 static constexpr const char* const kNumShards = "num_shards"; variable
Dshard_dataset_op.cc32 /* static */ constexpr const char* const ShardDatasetOp::kNumShards; member in tensorflow::data::ShardDatasetOp
249 OP_REQUIRES_OK(ctx, ParseScalarArgument<int64>(ctx, kNumShards, &num_shards)); in MakeDataset()
Dshard_dataset_op_test.cc47 input_names->emplace_back(ShardDatasetOp::kNumShards); in GetInputNames()