ROCm / ROCR-Runtime

ROCm Platform Runtime: ROCr a HPC market enhanced HSA based runtime
https://rocm.docs.amd.com/projects/ROCR-Runtime/en/latest/
Other
223 stars 109 forks source link

``hsa_executable_load_program_code_object`` could not succeed #140

Closed v01dXYZ closed 3 weeks ago

v01dXYZ commented 2 years ago

By looking at the code, hsa_executable_load_program_code_object is equivalent to hsa_executable_load_agent_code_object with agent := {0}.

This could not succeed as it seems the code calls hsa_agent_get_info with the handle. It fails since the handle is not valid (internally it is actually a pointer).

hsa_agent_get_info is called here: https://github.com/RadeonOpenCompute/ROCR-Runtime/blob/45e6039881b606bc04fedbfed41f9e9ef21d43cf/src/core/runtime/amd_loader_context.cpp#L435-L436 This induces a OUT_OF_RESOURCES error status: https://github.com/RadeonOpenCompute/ROCR-Runtime/blob/45e6039881b606bc04fedbfed41f9e9ef21d43cf/src/loader/executable.cpp#L1325-L1327

ppanchad-amd commented 2 months ago

@v01dXYZ Apologies for the lack of response. Can you please check if this issue still occurs with the latest ROCm 6.2? If not, please close the ticket. Thanks!

ppanchad-amd commented 3 weeks ago

@v01dXYZ Closing ticket. Please feel free to re-open ticket if you still need assistance. Thank!