]>
Commit | Line | Data |
---|---|---|
1 | Summary: Open source implementation of the OpenCL specification for Intel GPUs | |
2 | Summary(pl.UTF-8): Mająca otwarte źródła implementacja specyfikacji OpenCL dla GPU formy Intel | |
3 | Name: beignet | |
4 | Version: 1.3.1 | |
5 | Release: 2 | |
6 | License: LGPL v2+ | |
7 | Group: Libraries | |
8 | Source0: https://01.org/sites/default/files/beignet-%{version}-source.tar.gz | |
9 | # Source0-md5: 850886a71a34672ca26a42046d0bb442 | |
10 | Patch0: cflags.patch | |
11 | Patch1: static_llvm.patch | |
12 | Patch2: new_SKL_ids.patch | |
13 | URL: http://www.freedesktop.org/wiki/Software/Beignet/ | |
14 | BuildRequires: Mesa-libgbm-devel | |
15 | BuildRequires: Mesa-libGL-devel >= 13.0.0 | |
16 | BuildRequires: Mesa-libEGL-devel >= 13.0.0 | |
17 | BuildRequires: OpenGL-devel | |
18 | BuildRequires: clang-devel >= 3.9 | |
19 | BuildRequires: cmake >= 2.6.0 | |
20 | BuildRequires: libdrm-devel >= 2.4.66 | |
21 | BuildRequires: libedit-devel | |
22 | BuildRequires: libstdc++-devel | |
23 | BuildRequires: llvm >= 3.9 | |
24 | BuildRequires: llvm-devel >= 3.9 | |
25 | BuildRequires: ncurses-devel | |
26 | BuildRequires: ocl-icd-devel | |
27 | BuildRequires: pkgconfig | |
28 | BuildRequires: python | |
29 | BuildRequires: sed >= 4.0 | |
30 | BuildRequires: xorg-lib-libX11-devel | |
31 | BuildRequires: xorg-lib-libXext-devel | |
32 | BuildRequires: xorg-lib-libXfixes-devel | |
33 | BuildRequires: zlib-devel | |
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 | ||
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 | ||
54 | %prep | |
55 | %setup -qn Beignet-%{version}-Source | |
56 | %patch0 -p1 | |
57 | %patch1 -p1 | |
58 | %patch2 -p1 | |
59 | ||
60 | %build | |
61 | install -d build | |
62 | cd build | |
63 | %cmake \ | |
64 | -DLIB_INSTALL_DIR=%{_libdir} \ | |
65 | -DCMAKE_CXX_FLAGS_PLD="%{rpmcxxflags} -DNDEBUG -DGBE_DEBUG=0" \ | |
66 | -DCMAKE_C_FLAGS_PLD="%{rpmcxxflags} -DNDEBUG -DGBE_DEBUG=0" \ | |
67 | ../ | |
68 | %{__make} | |
69 | ||
70 | %install | |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
73 | %{__make} -C build install \ | |
74 | DESTDIR=$RPM_BUILD_ROOT | |
75 | ||
76 | %{__rm} -r $RPM_BUILD_ROOT%{_includedir} | |
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 | |
87 | %attr(755,root,root) %{_libdir}/%{name}/libgbe.so | |
88 | %attr(755,root,root) %{_libdir}/%{name}/libgbeinterp.so | |
89 | %{_libdir}/%{name}/beignet.pch | |
90 | %ifarch %{x8664} | |
91 | %{_libdir}/%{name}/beignet_20.bc | |
92 | %{_libdir}/%{name}/beignet_20.pch | |
93 | %endif | |
94 | %{_libdir}/%{name}/include | |
95 | /etc/OpenCL/vendors/intel-beignet.icd |