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