move executable_cache into program_state.cpp

This commit is contained in:
Siu Chi Chan committed 2019-05-24 17:27:25 -04:00
1 parent e2c0122892
commit 1a2d332e76
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.