/external/mesa3d/src/util/ |
D | disk_cache.h | 47 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 …]
|
D | disk_cache.c | 231 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 …]
|
D | disk_cache_os.h | 81 cache_key key; 110 disk_cache_get_cache_filename(struct disk_cache *cache, const cache_key key);
|
D | disk_cache_os.c | 417 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/ |
D | ir3_disk_cache.c | 101 _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/ |
D | etnaviv_disk_cache.c | 78 _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 …]
|
D | etnaviv_shader.h | 74 cache_key cache_key; /* shader disk-cache key */ member
|
/external/mesa3d/src/gallium/drivers/iris/ |
D | iris_disk_cache.c | 52 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/ |
D | nir_load_libclc.c | 89 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/ |
D | op_builder.cc | 172 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()
|
D | op_builder.h | 365 OpBuilder* LookupConstData(uint64_t cache_key); 369 void AddToCache(uint64_t cache_key, OpBuilder* value);
|
/external/tensorflow/tensorflow/core/common_runtime/eager/ |
D | attr_builder_test.cc | 77 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()
|
D | execute.cc | 389 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/ |
D | node_expansion_pass.cc | 65 Fprint128 cache_key = in Run() local 69 auto x = FingerprintCat64(cache_key.high64, cache_key.low64); in Run()
|
/external/tensorflow/tensorflow/core/tpu/kernels/ |
D | tpu_compilation_cache_interface.cc | 418 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/ |
D | rng_bit_generator_expander.cc | 59 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/ |
D | find_interesting_reviews.py | 480 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/ |
D | shader_cache.cpp | 118 (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/ |
D | ElementPath.py | 349 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/ |
D | anv_pipeline_cache.c | 680 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()
|
D | anv_pipeline.c | 604 } 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/ |
D | asm_compiler.cc | 118 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/ |
D | msg.c | 104 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/ |
D | backprop.py | 682 cache_key = shape_key, dtype, device 683 cached = ctx.zeros_cache().get(cache_key) 690 ctx.zeros_cache().put(cache_key, cached)
|
D | function.py | 2116 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 …]
|