hipamd icon indicating copy to clipboard operation
hipamd copied to clipboard

Do libamdhip really depend on libamd_comgr ?

Open littlewu2508 opened this issue 3 years ago • 1 comments

I'm maintaining hip package in Gentoo and I found although the cmake https://github.com/ROCm-Developer-Tools/ROCclr/blob/develop/cmake/ROCclrLC.cmake specifies that librocclr.a calls functions in libamd_comgr.so, when it comes to the final link of libamdhip64.so, the linker with --as-needed flag drops the link of libamd_comgr.so, meaning there is no functions in libamd_comgr.so called. I checked that -DUSE_COMGR_LIBRARY is used in compiling.

So is libamdhip really need libcomgr, or building hip just using comgr headers?

littlewu2508 avatar Sep 01 '22 14:09 littlewu2508

See my comments on the other issue. I don't think you can do this, since comgr is used as a compiler interface. I think the way it calls back to comgr is a bit confusing because it's meant to be more OS/backend generic (ROCclr works on Window's backend too).

Mystro256 avatar Sep 30 '22 14:09 Mystro256