Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 545924 - dev-libs/beignet: OpenCL environment for Intel GPUs
Summary: dev-libs/beignet: OpenCL environment for Intel GPUs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: Normal enhancement with 1 vote (vote)
Assignee: Marek Szuba
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-08 07:35 UTC by Cyril
Modified: 2016-09-02 07:40 UTC (History)
2 users (show)

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


Attachments
intel-beignet-1.0.2.ebuild (intel-beignet-1.0.2.ebuild,1.60 KB, text/plain)
2015-04-08 07:37 UTC, Cyril
Details
beignet-1.1.2.ebuild (beignet-1.1.2.ebuild,2.04 KB, text/plain)
2016-09-01 08:49 UTC, Marek Szuba
Details
do-not-build-tests.patch (do-not-build-tests.patch,360 bytes, patch)
2016-09-01 08:52 UTC, Marek Szuba
Details | Diff
llvm-empty-system-libs.patch (llvm-empty-system-libs.patch,450 bytes, patch)
2016-09-01 08:54 UTC, Marek Szuba
Details | Diff
llvm-terminfo.patch (llvm-terminfo.patch,788 bytes, patch)
2016-09-01 08:57 UTC, Marek Szuba
Details | Diff
no-debian-multiarch.patch (no-debian-multiarch.patch,1.61 KB, patch)
2016-09-01 09:01 UTC, Marek Szuba
Details | Diff
no-hardcoded-cflags.patch (no-hardcoded-cflags.patch,725 bytes, patch)
2016-09-01 09:04 UTC, Marek Szuba
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Cyril 2015-04-08 07:35:59 UTC
Intel beignet is OpenCL implementation for intel GPU.
https://01.org/beignet/
Last version is 1.0.2 : https://01.org/beignet/downloads/beignet-1.0.2-2015-03-16

this ebuild works for me but only with amd64 arch.

Reproducible: Always
Comment 1 Cyril 2015-04-08 07:37:32 UTC
Created attachment 400806 [details]
intel-beignet-1.0.2.ebuild
Comment 2 Chema Alonso Josa (RETIRED) gentoo-dev 2015-04-09 16:38:21 UTC
Please don't CC arch testing teams in non testing-related bugs.
Comment 3 Jan Henke 2016-05-05 17:27:52 UTC
*Ping* this ebuild would add a lot of value for all people with Intel GPUs (which are very common these days).
Comment 4 Marek Szuba archtester gentoo-dev 2016-08-01 10:07:25 UTC
While I am not entirely sure about how much value it would really add given relatively low performance of Intel GPUs, it would definitely be good to at least have it available. There are ebuilds for more recent versions of Beignet floating around and in principle they work, I'll see if I can make something suitable for inclusion into Portage out of one of these.
Comment 5 Marek Szuba archtester gentoo-dev 2016-09-01 08:49:51 UTC
Created attachment 444696 [details]
beignet-1.1.2.ebuild

Attaching an ebuild for the latest available version of Beignet. If everything goes well, I'll commit it to Portage soon.
Comment 6 Marek Szuba archtester gentoo-dev 2016-09-01 08:52:18 UTC
Created attachment 444698 [details, diff]
do-not-build-tests.patch

Ideally we would like tests to be run, for now however all they do is considerably increase compilation time.
Comment 7 Marek Szuba archtester gentoo-dev 2016-09-01 08:54:55 UTC
Created attachment 444700 [details, diff]
llvm-empty-system-libs.patch

Without the quotation marks added by this patch, the configure phase fails if llvm-config --system-libs returns an empty string (which I've just seen trying to emerge this ebuild in a chroot environment).
Comment 8 Marek Szuba archtester gentoo-dev 2016-09-01 08:57:23 UTC
Created attachment 444702 [details, diff]
llvm-terminfo.patch

The upstream LLVM version check is too strict, resulting in unresolved terminfo symbols at link time.
Comment 9 Marek Szuba archtester gentoo-dev 2016-09-01 09:01:33 UTC
Created attachment 444704 [details, diff]
no-debian-multiarch.patch

By default upstream installs 32-bit libraries into /usr/lib/beignet/lib32/. With this patch and appropriate setting of CMAKE_INSTALL_PREFIX in the ebuild, they end up in /usr/lib32/.../beignet/lib/ - i.e. where they should go in accordance with Gentoo policies - instead.
Comment 10 Marek Szuba archtester gentoo-dev 2016-09-01 09:04:22 UTC
Created attachment 444706 [details, diff]
no-hardcoded-cflags.patch

This patch simultaneously bypasses hardcoded CFLAGS/CXXFLAGS and enables support for Portage-provided ones.
Comment 11 Marek Szuba archtester gentoo-dev 2016-09-02 07:40:57 UTC
commit cd119cad371b2ddd61a50479eacf83e9f7f6efce
Author: Marek Szuba
Date:   Thu Sep 1 09:14:49 2016 +0000

    dev-libs/beignet: new package.