move executable_cache into program_state.cpp

Этот коммит содержится в:
Siu Chi Chan committed 2019-05-24 17:27:25 -04:00
1 родитель 80fec2b477
Коммит 00824be34c
4 files changed
+71 -76

No files matched your search

-9
Просмотреть файл
@@ -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.