| 361 | const int64 persistentCompilationCache::ptx_hash_; |
| 362 | |
| 363 | int64 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 | |
| 376 | void persistentCompilationCache::addToCache(int64 key, absl::string_view text, |
| 377 | const string &kind) { |
no test coverage detected