Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 599512 - dev-libs/beignet installs extra .icd files if dev-libs/ocl-icd is present
Summary: dev-libs/beignet installs extra .icd files if dev-libs/ocl-icd is present
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Marek Szuba
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-11 18:47 UTC by Amaroun
Modified: 2016-11-28 14:00 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Proposed patch (beignet-1.2.1_no-icd.patch,338 bytes, patch)
2016-11-18 11:23 UTC, Kai
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Amaroun 2016-11-11 18:47:13 UTC
dev-libs/beignet installs two .icd files, making one gpu appear as two separate devices.

equery f beignet | grep .icd
/etc/OpenCL/vendors/beignet-amd64.icd
/etc/OpenCL/vendors/intel-beignet.icd

beignet-amd64.icd is installed by ebuild, intel-beignet.icd is part of the package.

Please remove one of those from installation
Comment 1 Kai 2016-11-18 11:23:25 UTC
Created attachment 453722 [details, diff]
Proposed patch

Adding the attached patch to $PATCHES fixes the issue. Not sure if it is the cleanest solution.
Comment 2 Marek Szuba archtester gentoo-dev 2016-11-28 14:00:36 UTC
Thanks for the report! I've just committed (3677ef1db84606d689bea66d9212ed2cd3346d62) a fix. Please note that setting USE=ocl-icd is now required to enable Beignet compatibility with dev-libs/ocl-icd - formerly it was automagically enabled if the latter was found and disabled otherwise.