ROCR-Runtime icon indicating copy to clipboard operation
ROCR-Runtime copied to clipboard

``hsa_executable_load_program_code_object`` could not succeed

Open v01dXYZ opened this issue 2 years ago • 1 comments

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

v01dXYZ avatar May 15 '22 17:05 v01dXYZ