Fixed host allocated globals address lookup for host usage

Fixed texture driver APIs failure


[ROCm/clr commit: b8c23f979b]
这个提交包含在:
Rahul Garg
2018-01-30 18:06:31 +05:30
父节点 7c85d789d2
当前提交 f15543d5cf
修改 4 个文件,包含 8 行新增11 行删除
@@ -69,18 +69,16 @@ namespace hip_impl
}
};
using RAII_global = std::unique_ptr<void, decltype(hsa_amd_memory_unlock)*>;
const std::unordered_map<
hsa_agent_t, std::vector<hsa_executable_t>>& executables();
const std::unordered_map<
std::uintptr_t,
std::vector<std::pair<hsa_agent_t, Kernel_descriptor>>>& functions();
const std::unordered_map<std::uintptr_t, std::string>& function_names();
std::unordered_map<std::string, RAII_global>& globals();
std::unordered_map<std::string, void*>& globals();
hsa_executable_t load_executable(
const std::string& file,
hsa_executable_t executable,
hsa_agent_t agent);
} // Namespace hip_impl.
} // Namespace hip_impl.