Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide separate xpu-smi packages using distro driver packages #89

Open
eero-t opened this issue Dec 16, 2024 · 3 comments
Open

Provide separate xpu-smi packages using distro driver packages #89

eero-t opened this issue Dec 16, 2024 · 3 comments

Comments

@eero-t
Copy link

eero-t commented Dec 16, 2024

According to documentation: https://github.com/intel/xpumanager/blob/master/doc/smi_install_guide.md

xpu-smi depends on Intel repository driver packages.

However, names of those packages, and the library binaries included in them differ from ones used by driver packages already in the corresponding distros like Ubuntu 24.04.

Therefore, there should be separate XPUM release packages (of at least xpu-smi) that depend/use the distro driver packages.

@eero-t eero-t changed the title Provide separate xpu-smi packages depending on upstream distro driver packages Provide separate xpu-smi packages using distro driver packages Dec 16, 2024
@Qubitium
Copy link

Repo compiled deb pkg xpumanager_1.2.39_20240906.085820.11f3c29a.u24.04_amd64.deb has conflict with packages installed by official Intel ubuntu repos.

dpkg -i xpumanager_1.2.39_20240906.085820.11f3c29a.u24.04_amd64.deb
(Reading database ... 110342 files and directories currently installed.)
Preparing to unpack xpumanager_1.2.39_20240906.085820.11f3c29a.u24.04_amd64.deb ...
Unpacking xpumanager (1.2.39-20240906.085820.11f3c29a~u24.04) ...
dpkg: dependency problems prevent configuration of xpumanager:
 xpumanager depends on intel-gsc (>= 0.8.4); however:
  Package intel-gsc is not installed.
  Version of intel-gsc on system, provided by libigsc0:amd64, is <none>.
 xpumanager depends on intel-level-zero-gpu (>= 1.3.23726); however:
  Package intel-level-zero-gpu is not installed.
  Version of intel-level-zero-gpu on system, provided by libze-intel-gpu1:amd64, is <none>.

Trying to install apt install intel-level-zero-gpu intel-gsc now creates conflicts and unable to install cleanly.

 apt install intel-level-zero-gpu intel-gsc
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
intel-level-zero-gpu is already the newest version (1.3.29735.27-914~24.04).
The following packages were automatically installed and are no longer required:
  intel-metrics-discovery intel-metrics-library libigsc0 libmetee4
Use 'apt autoremove' to remove them.
The following NEW packages will be installed:
  intel-gsc
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/60.9 kB of archives.
After this operation, 211 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 110342 files and directories currently installed.)
Preparing to unpack .../intel-gsc_0.8.16+88~u24.04_amd64.deb ...
Unpacking intel-gsc (0.8.16+88~u24.04) ...
dpkg: error processing archive /var/cache/apt/archives/intel-gsc_0.8.16+88~u24.04_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/x86_64-linux-gnu/libigsc.so.0', which is also in package libigsc0 0.9.3-104~u24.04
Errors were encountered while processing:
 /var/cache/apt/archives/intel-gsc_0.8.16+88~u24.04_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

@huiqiwa
Copy link
Contributor

huiqiwa commented Dec 19, 2024

Repo compiled deb pkg xpumanager_1.2.39_20240906.085820.11f3c29a.u24.04_amd64.deb has conflict with packages installed by official Intel ubuntu repos.

dpkg -i xpumanager_1.2.39_20240906.085820.11f3c29a.u24.04_amd64.deb
(Reading database ... 110342 files and directories currently installed.)
Preparing to unpack xpumanager_1.2.39_20240906.085820.11f3c29a.u24.04_amd64.deb ...
Unpacking xpumanager (1.2.39-20240906.085820.11f3c29a~u24.04) ...
dpkg: dependency problems prevent configuration of xpumanager:
 xpumanager depends on intel-gsc (>= 0.8.4); however:
  Package intel-gsc is not installed.
  Version of intel-gsc on system, provided by libigsc0:amd64, is <none>.
 xpumanager depends on intel-level-zero-gpu (>= 1.3.23726); however:
  Package intel-level-zero-gpu is not installed.
  Version of intel-level-zero-gpu on system, provided by libze-intel-gpu1:amd64, is <none>.

Trying to install apt install intel-level-zero-gpu intel-gsc now creates conflicts and unable to install cleanly.

 apt install intel-level-zero-gpu intel-gsc
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
intel-level-zero-gpu is already the newest version (1.3.29735.27-914~24.04).
The following packages were automatically installed and are no longer required:
  intel-metrics-discovery intel-metrics-library libigsc0 libmetee4
Use 'apt autoremove' to remove them.
The following NEW packages will be installed:
  intel-gsc
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/60.9 kB of archives.
After this operation, 211 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 110342 files and directories currently installed.)
Preparing to unpack .../intel-gsc_0.8.16+88~u24.04_amd64.deb ...
Unpacking intel-gsc (0.8.16+88~u24.04) ...
dpkg: error processing archive /var/cache/apt/archives/intel-gsc_0.8.16+88~u24.04_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/x86_64-linux-gnu/libigsc.so.0', which is also in package libigsc0 0.9.3-104~u24.04
Errors were encountered while processing:
 /var/cache/apt/archives/intel-gsc_0.8.16+88~u24.04_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Given that intel-level-zero-gpu and intel-gsc have been renamed and replaced recently, and please install xpumanager while ignoring these dependencies:
sudo dpkg --ignore-depends=intel-gsc --ignore-depends=intel-level-zero-gpu -i xpumanager_1.2.39_20240906.085820.11f3c29a.u24.04_amd64.deb

@eero-t
Copy link
Author

eero-t commented Dec 19, 2024

Given that intel-level-zero-gpu and intel-gsc have been renamed and replaced recently, and please install xpumanager while ignoring these dependencies:

@huiqiwa Would some ticket about packaging be needed also for https://github.com/intel/igsc, or did you mean that packaging & releases there have already been updated, and only XPUM packaging needs an update?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants