HIP icon indicating copy to clipboard operation
HIP copied to clipboard

hipErrorSharedObjectInitFailed

Open shana34 opened this issue 2 years ago • 1 comments

Hi, I am writting some GCN assemble files recently. I refered to the GCN assemble guide on Rocm website. However, when I tried to generate 'a.co' file and load it by 'hipModuleLoad' API. I got 'hipErrorSharedObjectInitFailed', I don't know why this error arises. Below is the snapshots of the question: image image Thanks for kindly you.

shana34 avatar Sep 11 '21 08:09 shana34

The assembly needs to have metadata https://llvm.org/docs/AMDGPUUsage.html#code-object-metadata

You may follow https://github.com/ROCm-Developer-Tools/HIP/tree/develop/samples/2_Cookbook/16_assembly_to_executable to modify an assembly generated from a HIP code to get the correct metadata instead of creating assembly from scratch.

yxsamliu avatar Sep 13 '21 15:09 yxsamliu

@shana34, Is this still an issue? If not, please close the ticket. Thanks!

ppanchad-amd avatar Mar 22 '24 21:03 ppanchad-amd