move executable_cache into program_state.cpp

[ROCm/hip commit: 00824be34c]
This commit is contained in:
Siu Chi Chan committed 2019-05-24 17:27:25 -04:00
1 parent 44943f5cd9
commit 12d457cb4d
4 files changed
+71 -76

No files matched your search

-9
View File
@@ -2492,13 +2492,4 @@ namespace hip_impl {
#endif
}
std::mutex executables_cache_mutex;
std::vector<hsa_executable_t>& executables_cache(
std::string elf, hsa_isa_t isa, hsa_agent_t agent) {
static std::unordered_map<std::string,
std::unordered_map<hsa_isa_t,
std::unordered_map<hsa_agent_t, std::vector<hsa_executable_t>>>> cache;
return cache[elf][isa][agent];
}
} // Namespace hip_impl.