Home
last modified time | relevance | path

Searched refs:Shard (Results 1 – 25 of 86) sorted by relevance

1234

/external/llvm-project/mlir/lib/Support/
DStorageUniquer.cpp78 struct Shard { struct in __anonb14bee2a0111::ParametricStorageUniquer
94 getOrCreateUnsafe(Shard &shard, LookupKey &key, in getOrCreateUnsafe()
108 : shards(new std::atomic<Shard *>[numShards]), numShards(numShards) { in ParametricStorageUniquer()
117 if (Shard *shard = shards[i].load()) in ~ParametricStorageUniquer()
125 Shard &shard = getShard(hashValue); in getOrCreate()
154 Shard &shard = getShardFor(storage); in mutate()
164 Shard &getShard(unsigned hashValue) { in getShard()
169 Shard *shard = shards[shardNum].load(std::memory_order_acquire); in getShard()
174 Shard *newShard = new Shard(); in getShard()
184 Shard &getShardFor(BaseStorage *storage) { in getShardFor()
[all …]
/external/tensorflow/tensorflow/core/util/
Dwork_sharder_test.cc37 Shard(num_workers, threads, total, cost_per_unit, in RunSharding()
64 TEST(Shard, Basic) { in TEST() argument
78 TEST(Shard, OverflowTest) { in TEST() argument
84 Shard(workers, &threads, total_elements, cost_per_unit, in TEST()
100 Shard(arg - 1, &threads, total, 1, work); in BM_Sharding()
Dwork_sharder.h59 void Shard(int max_parallelism, thread::ThreadPool* workers, int64 total,
Dwork_sharder.cc32 void Shard(int max_parallelism, thread::ThreadPool* workers, int64 total, in Shard() function
/external/llvm-project/clang-tools-extra/clangd/index/
DBackgroundIndexLoader.cpp64 auto Shard = Storage->loadShard(StartSourceFile); in loadShard() local
65 if (!Shard || !Shard->Sources) { in loadShard()
70 LS.Shard = std::move(Shard); in loadShard()
71 for (const auto &It : *LS.Shard->Sources) { in loadShard()
DBackgroundIndexStorage.cpp70 IndexFileOut Shard) const override { in storeShard()
73 [&Shard](llvm::raw_ostream &OS) { in storeShard()
74 OS << Shard; in storeShard()
90 IndexFileOut Shard) const override { in storeShard()
DBackground.cpp372 if (!LS.Shard) in loadProject()
375 LS.Shard->Symbols in loadProject()
376 ? std::make_unique<SymbolSlab>(std::move(*LS.Shard->Symbols)) in loadProject()
378 auto RS = LS.Shard->Refs in loadProject()
379 ? std::make_unique<RefSlab>(std::move(*LS.Shard->Refs)) in loadProject()
382 LS.Shard->Relations in loadProject()
383 ? std::make_unique<RelationSlab>(std::move(*LS.Shard->Relations)) in loadProject()
DBackgroundIndexLoader.h42 std::unique_ptr<IndexFileIn> Shard; member
/external/llvm-project/clang-tools-extra/clangd/unittests/
DFileIndexTests.cpp645 auto Shard = ShardedIndex.getShard(AHeaderUri); in TEST() local
646 ASSERT_TRUE(Shard); in TEST()
647 EXPECT_THAT(*Shard->Symbols, UnorderedElementsAre(QName("1"))); in TEST()
648 EXPECT_THAT(*Shard->Refs, IsEmpty()); in TEST()
650 *Shard->Relations, in TEST()
654 ASSERT_THAT(Shard->Sources->keys(), UnorderedElementsAre(AHeaderUri)); in TEST()
655 EXPECT_THAT(Shard->Sources->lookup(AHeaderUri).DirectIncludes, IsEmpty()); in TEST()
656 EXPECT_TRUE(Shard->Cmd.hasValue()); in TEST()
659 auto Shard = ShardedIndex.getShard(BHeaderUri); in TEST() local
660 ASSERT_TRUE(Shard); in TEST()
[all …]
DBackgroundIndexTests.cpp62 IndexFileOut Shard) const override { in storeShard()
65 Storage[ShardIdentifier] = llvm::to_string(Shard); in storeShard()
614 auto Shard = MSS.loadShard(testPath("A.cc")); in TEST_F() local
615 EXPECT_THAT(*Shard->Symbols, UnorderedElementsAre(Named("foo"))); in TEST_F()
616 EXPECT_THAT(Shard->Sources->keys(), in TEST_F()
619 EXPECT_THAT(Shard->Sources->lookup("unittest:///A.cc"), HadErrors()); in TEST_F()
623 auto Shard = MSS.loadShard(testPath("A.h")); in TEST_F() local
624 EXPECT_THAT(*Shard->Symbols, UnorderedElementsAre(Named("foo"))); in TEST_F()
625 EXPECT_THAT(Shard->Sources->keys(), in TEST_F()
627 EXPECT_THAT(Shard->Sources->lookup("unittest:///A.h"), HadErrors()); in TEST_F()
[all …]
/external/tensorflow/tensorflow/security/advisory/
Dtfsa-2020-014.md1 ## TFSA-2020-014: Integer truncation in Shard API usage
7 The [`Shard`
12 void Shard(int max_parallelism, thread::ThreadPool* workers, int64 total,
22 Shard(worker_threads.num_threads, worker_threads.workers,
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DIsValidUtf8TestUtil.java167 static final class Shard { class in IsValidUtf8TestUtil
173 public Shard(long index, long start, long lim, long expected) { in Shard() method in IsValidUtf8TestUtil.Shard
215 static final List<Shard> FOUR_BYTE_SHARDS =
218 private static List<Shard> generateFourByteShards(int numShards, long[] expected) {
220 List<Shard> shards = new ArrayList<Shard>(numShards);
225 shards.add(new Shard(i, increment * i, increment * (i + 1), expected[i]));
DIsValidUtf8Test.java41 import com.google.protobuf.IsValidUtf8TestUtil.Shard;
170 for (Shard shard : IsValidUtf8TestUtil.FOUR_BYTE_SHARDS) { in testShardsHaveExpectedRoundTrippables()
/external/tensorflow/tensorflow/core/kernels/
Drecord_yielder.cc71 struct RecordYielder::Shard { struct in tensorflow::RecordYielder
134 std::vector<Shard> shards(N); in MainLoop()
136 Shard* shard = &shards[i]; in MainLoop()
198 void RecordYielder::ShardLoop(Shard* shard) { in ShardLoop()
Drecord_yielder.h152 struct Shard;
153 void ShardLoop(Shard* shard);
Ddiag_op.cc142 Shard(worker_threads.num_threads, worker_threads.workers, size, 5 * size, in operator ()()
162 Shard(worker_threads.num_threads, worker_threads.workers, size, 5, in operator ()()
/external/autotest/server/cros/tradefed/tradefed_utils_unittest_data/
DCtsDeqpTestCases-trimmed-inaccurate.txt22 Shard 0 used: [chromeos6-row4-rack16-host9:22]
23 Shard 1 used: [chromeos6-row4-rack16-host17:22]
/external/autotest/frontend/afe/
Drpc_interface_unittest.py231 models.Shard.DoesNotExist, models.Shard.objects.get, pk=shard1.id)
422 shard1 = models.Shard.objects.create(hostname='shard1')
443 shard1 = models.Shard.objects.create(hostname='shard1')
555 shard = models.Shard.objects.create(hostname='test_shard')
566 shard1 = models.Shard.smart_get(shard.id)
643 shard = models.Shard.objects.create(hostname=shard_hostname)
999 shard = models.Shard.objects.create(hostname='shard')
1139 shard = models.Shard.objects.create(hostname=shard_hostname)
1201 shard1 = models.Shard.objects.create(hostname='shard1')
1205 shard2 = models.Shard.objects.create(hostname='shard2')
[all …]
/external/tensorflow/tensorflow/core/kernels/boosted_trees/
Dquantile_ops.cc206 Shard(worker_threads.num_threads, worker_threads.workers, num_features_, in Compute()
265 Shard(worker_threads.num_threads, worker_threads.workers, num_features_, in Compute()
332 Shard(worker_threads.num_threads, worker_threads.workers, num_streams, in Compute()
379 Shard(worker_threads.num_threads, worker_threads.workers, num_features_, in Compute()
431 Shard(worker_threads.num_threads, worker_threads.workers, num_streams, in Compute()
490 Shard(worker_threads.num_threads, worker_threads.workers, num_streams, in Compute()
567 Shard(worker_threads.num_threads, worker_threads.workers, num_features_, in Compute()
Dprediction_ops.cc186 Shard(worker_threads->NumThreads(), worker_threads, batch_size, in Compute()
276 Shard(worker_threads->NumThreads(), worker_threads, batch_size, in Compute()
393 Shard(worker_threads->NumThreads(), worker_threads, batch_size, in Compute()
/external/tensorflow/tensorflow/core/lib/io/
Dcache.cc361 static uint32_t Shard(uint32_t hash) { return hash >> (32 - kNumShardBits); } in Shard() function in tensorflow::table::__anon4220aee90111::ShardedLRUCache
374 return shard_[Shard(hash)].Insert(key, hash, value, charge, deleter); in Insert()
378 return shard_[Shard(hash)].Lookup(key, hash); in Lookup()
382 shard_[Shard(h->hash)].Release(handle); in Release()
386 shard_[Shard(hash)].Erase(key, hash); in Erase()
/external/llvm-project/clang/lib/Tooling/DependencyScanning/
DDependencyScanningFilesystem.cpp120 CacheShard &Shard = CacheShards[llvm::hash_value(Key) % NumShards]; in get() local
121 std::unique_lock<std::mutex> LockGuard(Shard.CacheLock); in get()
122 auto It = Shard.Cache.try_emplace(Key); in get()
/external/rust/crates/crossbeam-utils/src/sync/
Dsharded_lock.rs19 struct Shard { struct
78 shards: Box<[CachePadded<Shard>]>,
104 CachePadded::new(Shard { in new()
/external/tensorflow/tensorflow/core/kernels/sparse/
Dsparse_cholesky_op.cc110 Shard(worker_threads.num_threads, worker_threads.workers, batch_size, in Compute()
189 Shard(worker_threads.num_threads, worker_threads.workers, batch_size, in Compute()
/external/tensorflow/tensorflow/core/kernels/tensor_forest/
Dprediction_ops.cc72 Shard(num_threads, worker_threads->workers, batch_size, cost_per_traverse, in Compute()

1234