remove executables() from program_state

This commit is contained in:
Siu Chi Chan
2019-05-04 14:35:27 -04:00
parent 6852be819f
commit e2c0122892
3 changed files with 3 additions and 13 deletions
+1 -1
View File
@@ -415,7 +415,7 @@ namespace hip_impl {
std::call_once(globals_from_process[agent].first, [this](hsa_agent_t aa) {
std::vector<Agent_global> tmp0;
for (auto&& executable : hip_impl::get_program_state().executables(aa)) {
for (auto&& executable : hip_impl::get_program_state().impl->get_executables(aa)) {
auto tmp1 = read_agent_globals(aa, executable);
tmp0.insert(tmp0.end(), make_move_iterator(tmp1.begin()),
make_move_iterator(tmp1.end()));
-4
View File
@@ -45,10 +45,6 @@ hsa_executable_t program_state::load_executable(const char* data,
return impl->load_executable(data, data_size, executable, agent);
}
const std::vector<hsa_executable_t>& program_state::executables(hsa_agent_t agent) {
return impl->get_executables(agent);
}
hipFunction_t program_state::kernel_descriptor(std::uintptr_t function_address,
hsa_agent_t agent) {
auto& kd = impl->kernel_descriptor(function_address, agent);