[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1028307: rocminfo and other packages have the same name as packages in the rocm repository



Il 09/01/23 20:19, Étienne Mollier ha scritto:
Hi Lorenzo,

Lorenzo Bertini, on 2023-01-09:
Dear maintainer,

rocminfo, rocm-device-libs and rocm-cmake packages have the same names as their
counterparts in the "official" repo in https://repo.radeon.com/rocm/apt/. When I add
this repository, apt tries to install the system version, so I have to manually
force the version the other packages in the repo need.

How should this be handled?

Thanks for your report, I must admit that has been bothering me
as well at some point, but AMD actually provides an escape hatch
for this case.  Since ROCm 3.3, each package in repo.radeon.com
has a versioned equivalent, e.g. rocminfo5.4.1 for the rocminfo
command of ROCm 5.4.1.  Note that if you use the versioned
package names, you need to use it consistently for your whole
ROCm installation.  However this makes upgrading version a bit
less transparent than using the unversioned packages allows; but
I recall having read in ROCm documentation that certain version
jumps used to require a full reinstallation anyway.

An other option involves pinning package versions, but I'm not
personally comfortable with this particular way of managing
packages, but I believe it would work if you have to deal with
older ROCm versions than 3.3.  If you are trying to keep up with
the lastest/ stream of packages, I'm not sure I have a good
solution at hand right now.

In hope this helps,

Pinning packages is what I'm doing right now and it was surprisingly less painful than I tought, except that my package manager (synaptic) doesn't seem to care and I have to resort to apt.

However, your suggestion of using rocm-X.Y.Z package seems better. Don't know why I didn't think about it. Also, the hierarchy of rocm packages seems to change sometimes, so updating requires reinstalling a lot of components often :).

Thank you.
--
Lorenzo


Reply to: