HIP
HIP copied to clipboard
hipErrorSharedObjectInitFailed
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:
Thanks for kindly you.
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.
@shana34, Is this still an issue? If not, please close the ticket. Thanks!