hsa_status_t amd_executable_load_code_object( hsa_executable_t executable, hsa_agent_t agent, hsa_code_object_t code_object, const char *options, amd_loaded_code_object_t *loaded_code_object) { if (!core::Runtime::runtime_singleton_->IsOpen()) { return HSA_STATUS_ERROR_NOT_INITIALIZED; } if (nullptr == loaded_code_object) { return HSA_STATUS_ERROR_INVALID_ARGUMENT; } Executable *exec = Executable::Object(executable); if (nullptr == exec) { return HSA_STATUS_ERROR_INVALID_EXECUTABLE; } return exec->LoadCodeObject(agent, code_object, options, loaded_code_object); }