remove executables() from program_state
[ROCm/hip commit: 80fec2b477]
Tá an tiomantas seo le fáil i:
@@ -31,9 +31,6 @@ THE SOFTWARE.
|
||||
#include <cstdint>
|
||||
#include <cstdlib>
|
||||
#include <stdexcept>
|
||||
#include <string>
|
||||
#include <unordered_map>
|
||||
#include <vector>
|
||||
|
||||
struct ihipModuleSymbol_t;
|
||||
using hipFunction_t = ihipModuleSymbol_t*;
|
||||
@@ -72,6 +69,7 @@ class program_state {
|
||||
public:
|
||||
program_state();
|
||||
~program_state();
|
||||
program_state(const program_state&) = delete;
|
||||
|
||||
hipFunction_t kernel_descriptor(std::uintptr_t,
|
||||
hsa_agent_t);
|
||||
@@ -83,12 +81,8 @@ public:
|
||||
|
||||
void* global_addr_by_name(const char* name);
|
||||
|
||||
// to fix later
|
||||
const std::vector<hsa_executable_t>& executables(hsa_agent_t agent);
|
||||
|
||||
program_state(const program_state&) = delete;
|
||||
|
||||
private:
|
||||
friend class agent_globals_impl;
|
||||
program_state_impl* impl;
|
||||
};
|
||||
|
||||
|
||||
@@ -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()));
|
||||
|
||||
@@ -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);
|
||||
|
||||
Tagairt in Eagrán Nua
Cuir bac ar úsáideoir