]>
Commit | Line | Data |
---|---|---|
22ed1ab0 | 1 | Summary: Open source implementation of the OpenCL specification for Intel GPUs |
eb672748 | 2 | Summary(pl.UTF-8): Mająca otwarte źródła implementacja specyfikacji OpenCL dla GPU formy Intel |
22ed1ab0 | 3 | Name: beignet |
039979b7 | 4 | Version: 1.3.1 |
c84dfa09 | 5 | Release: 3 |
9dfe627a | 6 | License: LGPL v2+ |
22ed1ab0 | 7 | Group: Libraries |
039979b7 JK |
8 | Source0: https://01.org/sites/default/files/beignet-%{version}-source.tar.gz |
9 | # Source0-md5: 850886a71a34672ca26a42046d0bb442 | |
b4439341 JK |
10 | Patch0: cflags.patch |
11 | Patch1: static_llvm.patch | |
1a11410a | 12 | Patch2: new_SKL_ids.patch |
c84dfa09 | 13 | Patch3: llvm-3.8.patch |
22ed1ab0 JK |
14 | URL: http://www.freedesktop.org/wiki/Software/Beignet/ |
15 | BuildRequires: Mesa-libgbm-devel | |
eb672748 JB |
16 | BuildRequires: Mesa-libGL-devel >= 13.0.0 |
17 | BuildRequires: Mesa-libEGL-devel >= 13.0.0 | |
978e36e0 | 18 | BuildRequires: OpenGL-devel |
eb672748 | 19 | BuildRequires: clang-devel >= 3.9 |
9dfe627a | 20 | BuildRequires: cmake >= 2.6.0 |
474406e8 | 21 | BuildRequires: libdrm-devel >= 2.4.66 |
039979b7 | 22 | BuildRequires: libedit-devel |
9dfe627a | 23 | BuildRequires: libstdc++-devel |
474406e8 JK |
24 | BuildRequires: llvm >= 3.9 |
25 | BuildRequires: llvm-devel >= 3.9 | |
039979b7 | 26 | BuildRequires: ncurses-devel |
22ed1ab0 | 27 | BuildRequires: ocl-icd-devel |
9dfe627a JB |
28 | BuildRequires: pkgconfig |
29 | BuildRequires: python | |
30 | BuildRequires: sed >= 4.0 | |
eb672748 | 31 | BuildRequires: xorg-lib-libX11-devel |
22ed1ab0 JK |
32 | BuildRequires: xorg-lib-libXext-devel |
33 | BuildRequires: xorg-lib-libXfixes-devel | |
039979b7 | 34 | BuildRequires: zlib-devel |
22ed1ab0 JK |
35 | Provides: ocl-icd(beignet) |
36 | Provides: ocl-icd-driver | |
37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
38 | ||
39 | %description | |
40 | Beignet is an open source implementation of the OpenCL specification - | |
41 | a generic compute oriented API. This code base contains the code to | |
42 | run OpenCL programs on Intel GPUs which basically defines and | |
43 | implements the OpenCL host functions required to initialize the | |
44 | device, create the command queues, the kernels and the programs and | |
45 | run them on the GPU. | |
46 | ||
9dfe627a JB |
47 | %description -l pl.UTF-8 |
48 | Beignet to mająca otwarte źródła implementacja specyfikacji OpenCL - | |
49 | ogólnego API przeznaczonego do obliczeń. Ten pakiet zawiera kod do | |
50 | uruchamiania programów OpenCL na procesorach graficznych (GPU) firmy | |
51 | Intel; kod ten zasadniczo definiuje i implementuje funkcje hosta | |
52 | OpenCL wymagane do zainicjowania urządzenia, tworzenia kolejek | |
53 | poleceń, jądra i programów oraz uruchamia je na GPU. | |
54 | ||
22ed1ab0 | 55 | %prep |
039979b7 | 56 | %setup -qn Beignet-%{version}-Source |
b4439341 JK |
57 | %patch0 -p1 |
58 | %patch1 -p1 | |
1a11410a | 59 | %patch2 -p1 |
c84dfa09 | 60 | %patch3 -p1 |
b4439341 | 61 | |
22ed1ab0 JK |
62 | %build |
63 | install -d build | |
64 | cd build | |
65 | %cmake \ | |
66 | -DLIB_INSTALL_DIR=%{_libdir} \ | |
978e36e0 JK |
67 | -DCMAKE_CXX_FLAGS_PLD="%{rpmcxxflags} -DNDEBUG -DGBE_DEBUG=0" \ |
68 | -DCMAKE_C_FLAGS_PLD="%{rpmcxxflags} -DNDEBUG -DGBE_DEBUG=0" \ | |
22ed1ab0 JK |
69 | ../ |
70 | %{__make} | |
71 | ||
72 | %install | |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
75 | %{__make} -C build install \ | |
76 | DESTDIR=$RPM_BUILD_ROOT | |
77 | ||
9dfe627a | 78 | %{__rm} -r $RPM_BUILD_ROOT%{_includedir} |
22ed1ab0 JK |
79 | |
80 | %clean | |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
83 | %files | |
84 | %defattr(644,root,root,755) | |
85 | %doc docs/* | |
86 | %dir %{_libdir}/%{name} | |
87 | %{_libdir}/%{name}/beignet.bc | |
88 | %attr(755,root,root) %{_libdir}/%{name}/libcl.so | |
978e36e0 JK |
89 | %attr(755,root,root) %{_libdir}/%{name}/libgbe.so |
90 | %attr(755,root,root) %{_libdir}/%{name}/libgbeinterp.so | |
b4439341 | 91 | %{_libdir}/%{name}/beignet.pch |
24f70a91 | 92 | %ifarch %{x8664} |
b4439341 JK |
93 | %{_libdir}/%{name}/beignet_20.bc |
94 | %{_libdir}/%{name}/beignet_20.pch | |
24f70a91 | 95 | %endif |
b4439341 | 96 | %{_libdir}/%{name}/include |
22ed1ab0 | 97 | /etc/OpenCL/vendors/intel-beignet.icd |