move executable_cache into program_state.cpp

[ROCm/clr commit: 1a2d332e76]
This commit is contained in:
Siu Chi Chan
2019-05-04 15:08:28 -04:00
parent 305eb4239e
commit 304a1e2dbe
4 changed files with 71 additions and 76 deletions
-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.