Home
last modified time | relevance | path

Searched refs:cache_key (Results 1 – 25 of 41) sorted by relevance

12

/external/mesa3d/src/util/
Ddisk_cache.h47 typedef uint8_t cache_key[CACHE_KEY_SIZE]; typedef
73 cache_key *keys; /* sha1 list of shaders that make up the cache item */
193 disk_cache_remove(struct disk_cache *cache, const cache_key key);
205 disk_cache_put(struct disk_cache *cache, const cache_key key,
223 disk_cache_get(struct disk_cache *cache, const cache_key key, size_t *size);
235 disk_cache_put_key(struct disk_cache *cache, const cache_key key);
248 disk_cache_has_key(struct disk_cache *cache, const cache_key key);
255 cache_key key);
276 disk_cache_put(struct disk_cache *cache, const cache_key key, in disk_cache_put()
284 disk_cache_remove(struct disk_cache *cache, const cache_key key) in disk_cache_remove()
[all …]
Ddisk_cache.c231 disk_cache_remove(struct disk_cache *cache, const cache_key key) in disk_cache_remove()
242 create_put_job(struct disk_cache *cache, const cache_key key, in create_put_job()
251 memcpy(dc_job->key, key, sizeof(cache_key)); in create_put_job()
262 dc_job->cache_item_metadata.keys = (cache_key *) in create_put_job()
263 malloc(cache_item_metadata->num_keys * sizeof(cache_key)); in create_put_job()
270 sizeof(cache_key) * cache_item_metadata->num_keys); in create_put_job()
331 disk_cache_put(struct disk_cache *cache, const cache_key key, in disk_cache_put()
354 disk_cache_get(struct disk_cache *cache, const cache_key key, size_t *size) in disk_cache_get()
389 disk_cache_put_key(struct disk_cache *cache, const cache_key key) in disk_cache_put_key()
416 disk_cache_has_key(struct disk_cache *cache, const cache_key key) in disk_cache_has_key()
[all …]
Ddisk_cache_os.h81 cache_key key;
110 disk_cache_get_cache_filename(struct disk_cache *cache, const cache_key key);
Ddisk_cache_os.c417 make_cache_file_directory(struct disk_cache *cache, const cache_key key) in make_cache_file_directory()
578 cache_item_md_size += num_keys * sizeof(cache_key); in disk_cache_load_item()
579 ret = lseek(fd, num_keys * sizeof(cache_key), SEEK_CUR); in disk_cache_load_item()
639 disk_cache_get_cache_filename(struct disk_cache *cache, const cache_key key) in disk_cache_get_cache_filename()
752 sizeof(cache_key)); in disk_cache_write_item_to_disk()
/external/mesa3d/src/freedreno/ir3/
Dir3_disk_cache.c101 _mesa_sha1_final(&ctx, shader->cache_key); in ir3_disk_cache_init_shader_key()
106 struct ir3_shader_variant *v, cache_key cache_key) in compute_variant_key() argument
111 blob_write_bytes(&blob, &v->shader->cache_key, sizeof(v->shader->cache_key)); in compute_variant_key()
115 disk_cache_compute_key(compiler->disk_cache, blob.data, blob.size, cache_key); in compute_variant_key()
167 cache_key cache_key; in ir3_disk_cache_retrieve() local
169 compute_variant_key(compiler, v, cache_key); in ir3_disk_cache_retrieve()
173 _mesa_sha1_format(sha1, cache_key); in ir3_disk_cache_retrieve()
178 void *buffer = disk_cache_get(compiler->disk_cache, cache_key, &size); in ir3_disk_cache_retrieve()
206 cache_key cache_key; in ir3_disk_cache_store() local
208 compute_variant_key(compiler, v, cache_key); in ir3_disk_cache_store()
[all …]
/external/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_disk_cache.c78 _mesa_sha1_final(&ctx, shader->cache_key); in etna_disk_cache_init_shader_key()
83 cache_key cache_key) in compute_variant_key() argument
89 blob_write_bytes(&blob, &v->shader->cache_key, sizeof(v->shader->cache_key)); in compute_variant_key()
92 disk_cache_compute_key(compiler->disk_cache, blob.data, blob.size, cache_key); in compute_variant_key()
132 cache_key cache_key; in etna_disk_cache_retrieve() local
134 compute_variant_key(compiler, v, cache_key); in etna_disk_cache_retrieve()
139 _mesa_sha1_format(sha1, cache_key); in etna_disk_cache_retrieve()
144 void *buffer = disk_cache_get(compiler->disk_cache, cache_key, &size); in etna_disk_cache_retrieve()
168 cache_key cache_key; in etna_disk_cache_store() local
170 compute_variant_key(compiler, v, cache_key); in etna_disk_cache_store()
[all …]
Detnaviv_shader.h74 cache_key cache_key; /* shader disk-cache key */ member
/external/mesa3d/src/gallium/drivers/iris/
Diris_disk_cache.c52 cache_key cache_key) in iris_disk_cache_compute_key() argument
68 disk_cache_compute_key(cache, data, data_size, cache_key); in iris_disk_cache_compute_key()
91 cache_key cache_key; in iris_disk_cache_store() local
92 iris_disk_cache_compute_key(cache, ish, prog_key, prog_key_size, cache_key); in iris_disk_cache_store()
96 _mesa_sha1_format(sha1, cache_key); in iris_disk_cache_store()
126 disk_cache_put(cache, cache_key, blob.data, blob.size, NULL); in iris_disk_cache_store()
158 cache_key cache_key; in iris_disk_cache_retrieve() local
159 iris_disk_cache_compute_key(cache, ish, prog_key, key_size, cache_key); in iris_disk_cache_retrieve()
163 _mesa_sha1_format(sha1, cache_key); in iris_disk_cache_retrieve()
168 void *buffer = disk_cache_get(screen->disk_cache, cache_key, &size); in iris_disk_cache_retrieve()
/external/mesa3d/src/compiler/spirv/
Dnir_load_libclc.c89 unsigned char cache_key[20]; member
104 snprintf((char *)clc->cache_key, sizeof(clc->cache_key), in open_clc_data()
127 _mesa_sha1_final(&ctx, clc->cache_key); in open_clc_data()
256 cache_key cache_key; in nir_load_libclc_shader() local
258 disk_cache_compute_key(disk_cache, clc.cache_key, in nir_load_libclc_shader()
259 sizeof(clc.cache_key), cache_key); in nir_load_libclc_shader()
262 uint8_t *buffer = disk_cache_get(disk_cache, cache_key, &buffer_size); in nir_load_libclc_shader()
304 disk_cache_put(disk_cache, cache_key, blob.data, blob.size, NULL); in nir_load_libclc_shader()
/external/tensorflow/tensorflow/lite/delegates/hexagon/builders/
Dop_builder.cc172 OpBuilder* GraphBuilder::LookupConstData(uint64_t cache_key) { in LookupConstData() argument
173 auto lookup_result = cache_.find(cache_key); in LookupConstData()
178 void GraphBuilder::AddToCache(uint64_t cache_key, OpBuilder* value) { in AddToCache() argument
179 cache_[cache_key] = value; in AddToCache()
184 auto cache_key = ComputeHash(shape, data, data_size); in AddConstNodeWithData() local
185 if (auto lookup_result = LookupConstData(cache_key)) return lookup_result; in AddConstNodeWithData()
197 AddToCache(cache_key, builders_.back().get()); in AddConstNodeWithData()
209 auto cache_key = ComputeHash(tensor, shape, int8_to_uint8 ? 1 : 0); in AddConstNodeWithData() local
210 if (auto lookup_result = LookupConstData(cache_key)) { in AddConstNodeWithData()
243 AddToCache(cache_key, result_builder); in AddConstNodeWithData()
Dop_builder.h365 OpBuilder* LookupConstData(uint64_t cache_key);
369 void AddToCache(uint64_t cache_key, OpBuilder* value);
/external/tensorflow/tensorflow/core/common_runtime/eager/
Dattr_builder_test.cc77 tensorflow::Fprint128 cache_key = a.CacheKey("cpu:0"); in TEST() local
79 ASSERT_FALSE(cache_key == a.CacheKey("cpu:1")); in TEST()
80 ASSERT_TRUE(cache_key == a.CacheKey("cpu:0")); in TEST()
83 ASSERT_FALSE(cache_key == a.CacheKey("cpu:0")); in TEST()
Dexecute.cc389 Fprint128 cache_key = op->MutableAttrs()->CacheKey(op->DeviceName()); in GetOrCreateKernelAndDevice() local
392 cache_key = FingerprintCat128(cache_key, ctx.AllowSoftPlacement()); in GetOrCreateKernelAndDevice()
395 cache_key = in GetOrCreateKernelAndDevice()
396 FingerprintCat128(cache_key, ctx.GetReuseRendezvousForFunctions()); in GetOrCreateKernelAndDevice()
437 cache_key = in GetOrCreateKernelAndDevice()
438 FingerprintCat128(cache_key, Fingerprint128(input_device->name())); in GetOrCreateKernelAndDevice()
457 cache_key = FingerprintCat128(cache_key, i); in GetOrCreateKernelAndDevice()
459 cache_key = FingerprintCat128(cache_key, dtype); in GetOrCreateKernelAndDevice()
460 AppendTensorShapeToFingerprint(dtype_and_shape.shape, &cache_key); in GetOrCreateKernelAndDevice()
466 core::RefCountPtr<KernelAndDevice> kernel = ctx.GetCachedKernel(cache_key); in GetOrCreateKernelAndDevice()
[all …]
/external/tensorflow/tensorflow/compiler/mlir/tfr/integration/
Dnode_expansion_pass.cc65 Fprint128 cache_key = in Run() local
69 auto x = FingerprintCat64(cache_key.high64, cache_key.low64); in Run()
/external/tensorflow/tensorflow/core/tpu/kernels/
Dtpu_compilation_cache_interface.cc418 std::string cache_key = FindCacheKey(subgraph_key); in CompileIfKeyAbsentHelper() local
419 auto iter = cache_.find(cache_key); in CompileIfKeyAbsentHelper()
426 cache_key = subgraph_key.ToString(); in CompileIfKeyAbsentHelper()
431 cache_key, "), session_name(", session_name, ")"); in CompileIfKeyAbsentHelper()
455 VLOG(1) << "Before adding new entry for key " << cache_key in CompileIfKeyAbsentHelper()
463 entry = InitializeEntry(cache_key, compile_function, subgraph_key); in CompileIfKeyAbsentHelper()
469 cache_key, "), session_name(", session_name, "), subgraph_key(", in CompileIfKeyAbsentHelper()
480 strings::StrCat("TPU host compilation cache hit: cache_key(", cache_key, in CompileIfKeyAbsentHelper()
484 VLOG(1) << "Before refreshing entry for key " << cache_key in CompileIfKeyAbsentHelper()
533 << " entry for key " << cache_key << " with session_name " in CompileIfKeyAbsentHelper()
/external/tensorflow/tensorflow/compiler/xla/service/
Drng_bit_generator_expander.cc59 RngGeneratorKey cache_key{data_shape, state_shape, algorithm, module}; in GetGeneratorComputation() local
60 auto it = computation_cache_.find(cache_key); in GetGeneratorComputation()
97 computation_cache_.emplace(cache_key, new_computation); in GetGeneratorComputation()
/external/llvm-project/llvm/utils/Reviewing/
Dfind_interesting_reviews.py480 def _populate_cache_for(self, cache_key): argument
481 assert cache_key not in self.cache
482 git_repo, base_revision, path = cache_key
487 self.cache[cache_key] = \
498 cache_key = (git_repo, base_revision, path)
499 if cache_key not in self.cache:
500 self._populate_cache_for(cache_key)
501 assert cache_key in self.cache
502 all_blame_lines = self.cache[cache_key]
/external/mesa3d/src/compiler/glsl/
Dshader_cache.cpp118 (cache_key *) malloc(prog->NumShaders * sizeof(cache_key)); in shader_cache_write_program_metadata()
126 sizeof(cache_key)); in shader_cache_write_program_metadata()
/external/python/cpython3/Lib/xml/etree/
DElementPath.py349 cache_key = (path,)
351 cache_key += tuple(sorted(namespaces.items()))
354 selector = _cache[cache_key]
377 _cache[cache_key] = selector
/external/mesa3d/src/intel/vulkan/
Danv_pipeline_cache.c680 cache_key cache_key; in anv_device_search_for_kernel() local
681 disk_cache_compute_key(disk_cache, key_data, key_size, cache_key); in anv_device_search_for_kernel()
684 uint8_t *buffer = disk_cache_get(disk_cache, cache_key, &buffer_size); in anv_device_search_for_kernel()
740 cache_key cache_key; in anv_device_upload_kernel() local
741 disk_cache_compute_key(disk_cache, key_data, key_size, cache_key); in anv_device_upload_kernel()
743 disk_cache_put(disk_cache, cache_key, binary.data, binary.size, NULL); in anv_device_upload_kernel()
Danv_pipeline.c604 } cache_key; member
1349 stages[s].cache_key.stage = s; in anv_pipeline_compile_graphics()
1350 memcpy(stages[s].cache_key.sha1, sha1, sizeof(sha1)); in anv_pipeline_compile_graphics()
1368 &stages[s].cache_key, in anv_pipeline_compile_graphics()
1369 sizeof(stages[s].cache_key), &cache_hit); in anv_pipeline_compile_graphics()
1582 &stages[s].cache_key, in anv_pipeline_compile_graphics()
1583 sizeof(stages[s].cache_key), in anv_pipeline_compile_graphics()
1680 .cache_key = { in anv_pipeline_compile_cs()
1707 anv_pipeline_hash_compute(pipeline, layout, &stage, stage.cache_key.sha1); in anv_pipeline_compile_cs()
1712 &stage.cache_key, in anv_pipeline_compile_cs()
[all …]
/external/tensorflow/tensorflow/stream_executor/gpu/
Dasm_compiler.cc118 PtxCacheKey cache_key{device_ordinal, std::string(ptx), in CompileGpuAsmOrGetCached() local
120 auto it = ptx_cache.find(cache_key); in CompileGpuAsmOrGetCached()
124 it = ptx_cache.emplace(cache_key, std::move(compiled)).first; in CompileGpuAsmOrGetCached()
/external/rust/crates/grpcio-sys/grpc/third_party/upb/upb/bindings/lua/
Dmsg.c104 char cache_key; variable
121 lua_rawsetp(L, LUA_REGISTRYINDEX, &cache_key); in lupb_cacheinit()
135 lua_rawgetp(L, LUA_REGISTRYINDEX, &cache_key); in lupb_cacheget()
152 lua_rawgetp(L, LUA_REGISTRYINDEX, &cache_key); in lupb_cacheset()
/external/tensorflow/tensorflow/python/eager/
Dbackprop.py682 cache_key = shape_key, dtype, device
683 cached = ctx.zeros_cache().get(cache_key)
690 ctx.zeros_cache().put(cache_key, cached)
Dfunction.py2116 cache_key = (need_gradients_for_jvps, input_tangents.indices)
2127 functions = self._first_order_tape_functions.get(cache_key, None)
2134 self._first_order_tape_functions[cache_key] = functions
2155 cache_key, None)
2162 self._higher_order_tape_functions[cache_key] = functions
3379 cache_key = self._cache_key(args, kwargs, cache_key_context)
3382 hash(cache_key)
3388 graph_function = self._function_cache.primary.get(cache_key, None)
3396 self._python_function, cache_key)
3401 call_context_key = cache_key._replace(input_signature=None)
[all …]

12