[Pkg-opencl-devel] defaulting to installing all ICDs?
Graham Inggs
graham at nerve.org.za
Mon Feb 2 10:43:09 UTC 2015
On 31/01/2015 10:10, Rebecca N. Palmer wrote:
> To clarify my previous message: while I do still think this is a good
> idea, I no longer want to rush it through for Ubuntu.
>
>> For example, the Xorg
>> server pulls in "xserver-xorg-video-all | xorg-driver-video".
> That's where I got the idea from.
So applications that need X depend on Xorg server and Xorg server
depends on video drivers.
>
>> So that would become
>>
>> [application-using-opencl Depends:] opencl-icd-all | opencl-icd
> Yes, and
> opencl-icd-all Depends: pocl-opencl-icd | mesa-opencl-icd |
> beignet-opencl-icd
> Recommends: pocl-opencl-icd, mesa-opencl-icd, beignet-opencl-icd
I think application-using-opencl should depend on the ICD loader
(libopencl) through shlibs:Depends, i.e. not an explicit Depends.
The ICD loader can then in turn depend (or recommend?) all the
"conforming" ICDs (as Andreas wrote).
On 31/01/2015 01:29, Rebecca N. Palmer wrote:
> There is a separate "make ocl-icd-libopencl1 Recommend opencl-icd"
> proposal (
> http://sources.debian.net/src/ocl-icd/2.2.3-1/debian/control/#L23 ),
> but that wouldn't be allowed in Ubuntu because of their "main
> (supported, includes ocl-icd-libopencl1) can't Recommend universe
> (unsupported, includes beignet and pocl)" rule (
> https://wiki.ubuntu.com/UbuntuMainInclusionRequirements ).
>
> (Having both main and universe binaries built from the same source
> package _is_ allowed, e.g. remmina, so this doesn't explain the lack
> of mesa-opencl-icd in Ubuntu; the changelog says this is deliberate,
> but gives no reason.)
Regarding Ubuntu, let me try to get mesa-opencl-icd built in Ubuntu (I
see bugs LP: #1319835 and LP: #1366709 - I'll work on this).
We could try to get beignet and pocl into main by following the process
( https://wiki.ubuntu.com/MainInclusionProcess ), provided they meet the
requirements (as per your link above).
Alberto recently did this for ocl-icd (see LP: #1382086) because we
decided to have the AMD and Nvidia drivers depend on ocl-icd instead of
their proprietary loaders in order to reduce the number of bug reports
coming from users of the proprietary graphics drivers installing WINE
and then receiving a warning that packages are going to be removed (see
LP: #1333008).
More information about the Pkg-opencl-devel
mailing list