MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / createKey

Method createKey

tensorflow/compiler/xla/service/gpu/nvptx_compiler.cc:363–374  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

361const int64 persistentCompilationCache::ptx_hash_;
362
363int64 persistentCompilationCache::createKey(
364 llvm::Module* llvm_module, const std::pair<int, int> &compute_capability){
365 string llvm_str = llvm_ir::DumpModuleToString(*llvm_module);
366
367 int64 key = tensorflow::Hash64Combine(
368 tensorflow::Hash64Combine(tensorflow::Hash64(llvm_str),
369 compute_capability.first),
370 compute_capability.second);
371 VLOG(3) << "Created key " << key << ".";
372
373 return key;
374}
375
376void persistentCompilationCache::addToCache(int64 key, absl::string_view text,
377 const string &kind) {

Callers 1

nvptx_compiler.ccFile · 0.80

Calls 3

DumpModuleToStringFunction · 0.85
Hash64CombineFunction · 0.85
Hash64Function · 0.50

Tested by

no test coverage detected