Home
last modified time | relevance | path

Searched refs:max_cache_size (Results 1 – 25 of 33) sorted by relevance

12

/external/sdv/vsomeip/third_party/boost/regex/test/object_cache/
Dobject_cache_test.cpp52 static const int max_cache_size = 5; variable
59 …S::shared_ptr<const test_object> p = boost::object_cache<int, test_object>::get(i, max_cache_size); in cpp_main()
61 p = boost::object_cache<int, test_object>::get(i, max_cache_size); in cpp_main()
65 p = boost::object_cache<int, test_object>::get(i-1, max_cache_size); in cpp_main()
72 for(i = 20 - max_cache_size; i < 20; ++i) in cpp_main()
74 …S::shared_ptr<const test_object> p = boost::object_cache<int, test_object>::get(i, max_cache_size); in cpp_main()
76 p = boost::object_cache<int, test_object>::get(i, max_cache_size); in cpp_main()
/external/mesa3d/src/util/
Dmesa_cache_db_multipart.c66 if (db->max_cache_size) in mesa_cache_db_multipart_init_part_locked()
67 mesa_cache_db_set_size_limit(db_part, db->max_cache_size / db->num_parts); in mesa_cache_db_multipart_init_part_locked()
115 uint64_t max_cache_size) in mesa_cache_db_multipart_set_size_limit() argument
120 max_cache_size / db->num_parts); in mesa_cache_db_multipart_set_size_limit()
123 db->max_cache_size = max_cache_size; in mesa_cache_db_multipart_set_size_limit()
Dmesa_cache_db.h35 uint64_t max_cache_size; member
51 uint64_t max_cache_size);
92 uint64_t max_cache_size) in mesa_cache_db_set_size_limit() argument
Dmesa_cache_db_multipart.h19 uint64_t max_cache_size; member
32 uint64_t max_cache_size);
Dmesa_cache_db.c752 uint64_t max_cache_size) in mesa_cache_db_set_size_limit() argument
754 db->max_cache_size = max_cache_size; in mesa_cache_db_set_size_limit()
842 sizeof(struct mesa_db_file_header) <= db->max_cache_size; in mesa_cache_db_has_space_locked()
848 return db->max_cache_size / 2 - sizeof(struct mesa_db_file_header); in mesa_cache_db_eviction_size()
/external/executorch/examples/mediatek/model_export_scripts/
Dllama.py165 num_chunks, num_key_value_heads, num_blocks_per_chunk, head_dim, max_cache_size argument
173max_cache_size, # generate fixed cache as torch dynamic shape cannot handle 2 dynamic dim
233 max_cache_size, argument
242 mask = generate_mask(max_cache_size, 0, input_length, input_length)
246 len(models), num_key_value_heads, num_blocks_per_chunk, head_dim, max_cache_size
266 mask = generate_mask(max_cache_size, seq_length, input_length, input_length)
311 max_cache_size, argument
318 max_num_token, max_cache_size, True
417 export_shapes, max_num_token, max_cache_size = get_export_shapes(args.shapes)
461 "max_cache_size": max_cache_size,
[all …]
/external/tensorflow/tensorflow/core/tpu/kernels/
Dtpu_compilation_cache_external.h48 explicit TpuCompilationCacheExternal(int64_t max_cache_size) in TpuCompilationCacheExternal() argument
49 : TpuCompilationCacheInterface(max_cache_size) {} in TpuCompilationCacheExternal()
Dtpu_compilation_cache_rpc_lookup.cc51 const std::string& server_address, int64_t max_cache_size) in TpuCompilationCacheRpcLookup() argument
52 : max_cache_size_(max_cache_size) { in TpuCompilationCacheRpcLookup()
Dtpu_compilation_cache_rpc_lookup.h41 int64_t max_cache_size);
Dtpu_compilation_cache_interface.h88 explicit TpuCompilationCacheInterface(int64_t max_cache_size);
Dtpu_compilation_cache_interface.cc115 int64_t max_cache_size) in TpuCompilationCacheInterface() argument
116 : max_cache_size_(max_cache_size) { in TpuCompilationCacheInterface()
/external/mesa3d/src/broadcom/vulkan/
Dv3dv_bo.c407 device->bo_cache.max_cache_size = DEFAULT_MAX_BO_CACHE_SIZE; in v3dv_bo_cache_init()
409 device->bo_cache.max_cache_size = atoll(max_cache_size_str); in v3dv_bo_cache_init()
412 mesa_logi("MAX BO CACHE SIZE: %iMB\n", device->bo_cache.max_cache_size); in v3dv_bo_cache_init()
416 device->bo_cache.max_cache_size *= 1024 * 1024; in v3dv_bo_cache_init()
483 bo->size > cache->max_cache_size - cache->cache_size) { in v3dv_bo_free()
491 bo->size > cache->max_cache_size - cache->cache_size) { in v3dv_bo_free()
/external/coreboot/src/lib/
Dsmbios.c517 const size_t max_cache_size, in smbios_write_type7() argument
533 if (max_cache_size < (SMBIOS_CACHE_SIZE_MASK * KiB)) { in smbios_write_type7()
534 t->max_cache_size = max_cache_size / KiB; in smbios_write_type7()
535 t->max_cache_size2 = t->max_cache_size; in smbios_write_type7()
537 t->max_cache_size |= SMBIOS_CACHE_SIZE_UNIT_1KB; in smbios_write_type7()
540 if (max_cache_size < (SMBIOS_CACHE_SIZE_MASK * 64 * KiB)) in smbios_write_type7()
541 t->max_cache_size = max_cache_size / (64 * KiB); in smbios_write_type7()
543 t->max_cache_size = SMBIOS_CACHE_SIZE_OVERFLOW; in smbios_write_type7()
544 t->max_cache_size2 = max_cache_size / (64 * KiB); in smbios_write_type7()
546 t->max_cache_size |= SMBIOS_CACHE_SIZE_UNIT_64KB; in smbios_write_type7()
/external/executorch/examples/mediatek/aot_utils/llm_utils/
Dutils.py378 max_cache_size = 0
385 max_cache_size = cache_size if cache_size > max_cache_size else max_cache_size
387 return export_shapes, max_num_token, max_cache_size
/external/tensorflow/tensorflow/lite/delegates/nnapi/
Dnnapi_delegate_kernel.h220 explicit NNAPIExecutionCache(uint32_t max_cache_size) in NNAPIExecutionCache() argument
221 : max_cache_size_(max_cache_size) {} in NNAPIExecutionCache()
236 void SetMaxCacheSize(uint32_t max_cache_size);
/external/puffin/src/
Dpuffin_stream.h91 size_t max_cache_size = 0);
136 size_t max_cache_size);
Dpuffin_stream.cc65 size_t max_cache_size) { in CreateForPuff() argument
72 puffs, max_cache_size)); in CreateForPuff()
98 size_t max_cache_size) in PuffinStream() argument
112 lru_cache_(max_cache_size) { in PuffinStream()
Dpuffpatch.cc195 size_t max_cache_size) { in PuffPatch() argument
214 src_deflates, src_puffs, max_cache_size); in PuffPatch()
/external/puffin/src/include/puffin/
Dpuffpatch.h33 size_t max_cache_size = kDefaultCacheSize);
/external/python/google-auth-library-python/google/auth/
Djwt.py598 max_cache_size=_DEFAULT_MAX_CACHE_SIZE, argument
627 self._cache = cachetools.LRUCache(maxsize=max_cache_size)
735 max_cache_size=self._cache.maxsize,
747 max_cache_size=self._cache.maxsize,
/external/mesa3d/src/gallium/auxiliary/pipebuffer/
Dpb_cache.h57 uint64_t max_cache_size; member
Dpb_cache.c126 if (mgr->cache_size + buf->size > mgr->max_cache_size) { in pb_cache_add_buffer()
325 mgr->max_cache_size = maximum_cache_size; in pb_cache_init()
/external/webrtc/rtc_tools/frame_analyzer/
Dvideo_temporal_aligner.cc118 CachedVideo(int max_cache_size, const rtc::scoped_refptr<Video>& video) in CachedVideo() argument
119 : max_cache_size_(max_cache_size), video_(video) {} in CachedVideo()
/external/tensorflow/tensorflow/compiler/xla/tests/
Dexhaustive_op_test_utils.cc335 int64_t max_cache_size = in ExpectNear() local
337 pure_subnormal_cache.reserve(max_cache_size); in ExpectNear()
338 for (int i = 0; i < max_cache_size; ++i) { in ExpectNear()
/external/coreboot/src/include/
Dsmbios.h679 u16 max_cache_size; member
1245 const size_t max_cache_size,

12