Re: ROCm Library SONAME
Opps. It seems I got some details wrong about the current SOVERSION. The
bit quoted below is wrong:
On 2022-11-20 04:51, Cordell Bloor wrote:
ROCm 5.4.0
Library Version: 2.46.0
VERSION: 0.1
SOVERSION: 0.1
SONAME: librocblas.so.0
All the ROCm math and communication libraries set the VERSION and
SOVERSION properties using a call to rocm_set_soversion [1]. While the
argument to that function is named "SOVERSION", the function actually
sets the SOVERSION property using only the major version component of
the passed value. Thus, the actual property values would be:
ROCm 5.4.0
Library Version: 2.46.0
VERSION: 0.1
SOVERSION: 0
SONAME: librocblas.so.0
ROCm 5.5.0
Library Version: 2.47.0
VERSION: 0.1
SOVERSION: 0
SONAME: librocblas.so.0
ROCm 6.0.0
Library Version: 3.0.0
VERSION: 3.0.0
SOVERSION: 3
SONAME: librocblas.so.3
ROCm 6.1.0
Library Version: 3.1.0
VERSION: 3.1.0
SOVERSION: 3
SONAME: librocblas.so.3
I see that this proposed versioning matches how Qt sets their VERSION
and SOVERSION properties [2].
Sincerely,
Cory Bloor
[1]:
https://github.com/RadeonOpenCompute/rocm-cmake/blob/rocm-5.3.3/share/rocm/cmake/ROCMSetupVersion.cmake#L158-L172
[2]:
https://github.com/qt/qtbase/blob/v6.4.1/cmake/QtModuleHelpers.cmake#L285-L291
Reply to: