[elrepo] nvidia-x11-drv-340xx-340.107-2.el7_6.elrepo.x86_64 conflicts ocl-icd

Phil Perry phil at elrepo.org
Wed Mar 6 13:45:33 EST 2019


On 06/03/2019 14:37, Oscar Conchillo-Solé wrote:
> Hi all
> 
> I'm having a strange problem that probably you know the solution
> 
> I had gromacs and nvidia-x11-drv-340xx (nvidia from el repo) packages 
> installed up until now without a problem, but now in one computer, when 
> I update the nvidia drivers it says it conflics with ocl-icd.
> 
> ocl-icd was installed as a requirement for gromacs. I guess the conflict 
> is that both provide "/usr/lib64/libOpenCL.so.1"
> 

Correct, both our nvidia driver package and ocl-icd (from epel?) provide 
the same file so they conflict with each other.

You will need to uninstall ocl-icd if you want to update to the latest 
version of the nvidia drivers from elrepo, to resolve that conflict.

> However, in another computer which has almost identical installation 
> (almost the same packages) but different nvidia graphics card (uses 
> nvidia-x11-drv-390xx instead of the previously mentioned) when I install 
> gromacs I have no clonflict problem and ocl-icd does not appear as a 
> requirement.
> 

Maybe ocl-icd is not installed on that system or you don't have the 
latest version of nvidia-x11-drv-390xx?

> Another thing that I'm not sure I understand is that the package that 
> provides "/usr/lib64/libOpenCL.so.1" is not nvidia-x11-drv-390xx or 
> nvidia-x11-drv-340xx but nvidia-x11-drv-390xx-libs or 
> nvidia-x11-drv-340xx-libs which are not the ones reported to conflic.
> 

Correct. That's a minor oversight on my behalf. The nvidia-x11-drv-390xx 
and nvidia-x11-drv-390xx-libs packages go hand in hand - I added the 
Conflicts to nvidia-x11-drv-390xx but the library is actually provided 
by nvidia-x11-drv-390xx-libs. It shouldn't actually affect anything, but 
I'll fix that in the next release.

> I find it strange that having both cases the library 
> "/usr/lib64/libOpenCL.so.1" installed by a elrepo nvidia package in one 
> case it requires another package to provide it (ocl-icd) and in another 
> don't.
> 
> here is my output of "yum install gromacs" in the computer with the 340 
> driver installed and updated:
> 
> # yum install gromacs
> Loaded plugins: fastestmirror, langpacks, ovl, versionlock
> Loading mirror speeds from cached hostfile
>   * base: ftp.csuc.cat
>   * epel: mirror.airenetworks.es
>   * extras: ftp.csuc.cat
>   * updates: ftp.csuc.cat
> Resolving Dependencies
> --> Running transaction check
> ---> Package gromacs.x86_64 0:2018.5-1.el7 will be installed
> --> Processing Dependency: gromacs-libs = 2018.5-1.el7 for package: 
> gromacs-2018.5-1.el7.x86_64
> --> Processing Dependency: libgromacs.so.3()(64bit) for package: 
> gromacs-2018.5-1.el7.x86_64
> --> Processing Dependency: libgromacs_d.so.3()(64bit) for package: 
> gromacs-2018.5-1.el7.x86_64
> --> Running transaction check
> ---> Package gromacs-libs.x86_64 0:2018.5-1.el7 will be installed
> --> Processing Dependency: libOpenCL.so.1(OPENCL_1.0)(64bit) for 
> package: gromacs-libs-2018.5-1.el7.x86_64
> --> Processing Dependency: libOpenCL.so.1(OPENCL_1.2)(64bit) for 
> package: gromacs-libs-2018.5-1.el7.x86_64
> --> Running transaction check
> ---> Package ocl-icd.x86_64 0:2.2.12-1.el7 will be installed

Yum has correctly identified libOpenCL.so.1 as a dependency but has then 
identified ocl-icd as the best option to resolve that dependency.

Try running the yum install gromacs again with epel disabled:

yum --disablerepo=epel install gromacs

Hopefully yum will then see that nvidia-x11-drv-340xx-libs provides 
those dependencies.

To check that is the case:

rpm -q --provides nvidia-x11-drv-libs | grep OPENCL
libOpenCL.so.1(OPENCL_1.0)(64bit)
libOpenCL.so.1(OPENCL_1.1)(64bit)
libOpenCL.so.1(OPENCL_1.2)(64bit)
libOpenCL.so.1(OPENCL_2.0)(64bit)

^^ that's from my install of nvidia-x11-drv-libs - try the same for your 
installation of nvidia-x11-drv-340xx-libs.

> --> Processing Conflict: 
> nvidia-x11-drv-340xx-340.107-2.el7_6.elrepo.x86_64 conflicts ocl-icd
> --> Finished Dependency Resolution
> Error: nvidia-x11-drv-340xx conflicts with ocl-icd-2.2.12-1.el7.x86_64
>   You could try using --skip-broken to work around the problem
> 
> PS: I have other computers with require also the nvidia 340 driver, I 
> have it installed from "elrepo" and no probmels until today, however now 
> when I try to update it it reports a conflict with ocl-icd and does not 
> allow the update:
> 
> yum update --enablerepo=elrepo kmod-nvidia-340xx 
> nvidia-x11-drv-340xx-32bit nvidia-x11-drv-340xx

You will need to uninstall ocl-icd before you can perform this update.

> Loaded plugins: fastestmirror, langpacks, ovl, versionlock
> Loading mirror speeds from cached hostfile
> epel/x86_64/metalink |  30 kB  00:00:00
>   * base: ftp.csuc.cat
>   * elrepo: mirrors.coreix.net
>   * epel: mirror.uv.es
>   * extras: ftp.csuc.cat
>   * updates: ftp.csuc.cat
> base | 3.6 kB  00:00:00
> elrepo | 2.9 kB  00:00:00
> epel | 4.7 kB  00:00:00
> extras | 3.4 kB  00:00:00
> updates | 3.4 kB  00:00:00
> (1/4): elrepo/primary_db | 270 kB  00:00:00
> (2/4): epel/x86_64/updateinfo | 958 kB  00:00:00
> (3/4): updates/7/x86_64/primary_db | 2.5 MB  00:00:00
> (4/4): epel/x86_64/primary_db | 6.6 MB  00:00:01
> Resolving Dependencies
> --> Running transaction check
> ---> Package nvidia-x11-drv-340xx.x86_64 0:340.107-1.el7.elrepo will be 
> updated
> ---> Package nvidia-x11-drv-340xx.x86_64 0:340.107-2.el7_6.elrepo will 
> be an update
> ---> Package nvidia-x11-drv-340xx-32bit.x86_64 0:340.107-1.el7.elrepo 
> will be obsoleted
> ---> Package nvidia-x11-drv-340xx-libs.x86_64 0:340.107-2.el7_6.elrepo 
> will be obsoleting
> --> Processing Conflict: 
> nvidia-x11-drv-340xx-340.107-2.el7_6.elrepo.x86_64 conflicts ocl-icd
> --> Finished Dependency Resolution
> Error: nvidia-x11-drv-340xx conflicts with ocl-icd-2.2.12-1.el7.x86_64
>   You could try using --skip-broken to work around the problem
>   You could try running: rpm -Va --nofiles --nodigest
> 
> Could you please help me to keep installed and updated version of 
> nvidia-x11-drv-340xx and gromacs at the same time as I have always have 
> it without problems or as I still have in the computer that I can use 
> nvidia-x11-drv-390xx?
> 
> thank you very much
> 
> Oscar C.S.
> 
> 



More information about the elrepo mailing list