Fixed host allocated globals address lookup for host usage

Fixed texture driver APIs failure
Этот коммит содержится в:
Rahul Garg
2018-01-30 18:06:31 +05:30
родитель 84e3333c5b
Коммит 24ab820a11
4 изменённых файлов: 8 добавлений и 11 удалений
+2 -4
Просмотреть файл
@@ -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.