Home
last modified time | relevance | path

Searched refs:hashmap_size (Results 1 – 5 of 5) sorted by relevance

/third_party/mindspore/mindspore/ccsrc/frontend/parallel/cache_embedding/
Dcache_embedding.cc143 size_t hashmap_size, size_t col_size) { in MemCopyFromHostToCache() argument
150 for (size_t i = 0; i < hashmap_size; ++i) { in MemCopyFromHostToCache()
169 auto hashmap_size = hashmap_tensor->shape_c()[0]; in BindAndInitCacheTensor() local
193 … host_data_max_size, cache_data_max_size, LongToSize(hashmap_size), in BindAndInitCacheTensor()
197 … host_data_max_size, cache_data_max_size, LongToSize(hashmap_size), in BindAndInitCacheTensor()
206 …shMapData(void *data, const int64_t host_size, const int64_t cache_size, const size_t hashmap_size, in InitHashMapData() argument
226 auto entry = HashFunc(random_key, hashmap_size); in InitHashMapData()
230 entry = (entry + 1) % static_cast<T>(hashmap_size); in InitHashMapData()
240 MS_LOG(INFO) << "Hashmap init success, with " << hashmap_count << " / " << hashmap_size; in InitHashMapData()
246 size_t hashmap_size = static_cast<size_t>(cache_size * kEmptyRate); in InitHashMap() local
[all …]
/third_party/mindspore/mindspore/ccsrc/pybind_api/ir/
Dtensor_py.cc304 size_t hashmap_size, size_t col_size) { in MemCopyFromCacheToHost() argument
311 for (size_t i = 0; i < hashmap_size; ++i) { in MemCopyFromCacheToHost()
341 auto hashmap_size = hashmap_tensor_ptr->shape_c()[0]; in FlushFromCache() local
353 … host_data_max_size, cache_data_max_size, hashmap_size, host_shape[1]); in FlushFromCache()
356 … host_data_max_size, cache_data_max_size, hashmap_size, host_shape[1]); in FlushFromCache()
/third_party/eudev/src/shared/
Dconf-files.c139 qsort_safe(files, hashmap_size(fh), sizeof(char *), base_cmp); in conf_files_list_strv_internal()
Dhashmap.h277 static inline unsigned hashmap_size(Hashmap *h) { in hashmap_size() function
285 return hashmap_size(h) == 0; in hashmap_isempty()
/third_party/eudev/src/udev/
Dudevd.c465 if (hashmap_size(workers) >= arg_children_max) { in event_run()
467 log_debug("maximum number (%i) of children reached", hashmap_size(workers)); in event_run()