| 1 |
#it's changed by external script |
| 2 |
%global ver xxx |
| 3 |
%global rel xxx |
| 4 |
%global build_id xxx |
| 5 |
%global NEO_RELEASE_WITH_REGKEYS FALSE |
| 6 |
%global NEO_ENABLE_I915_PRELIM_DETECTION FALSE |
| 7 |
%global NEO_ENABLE_XE_PRELIM_DETECTION FALSE |
| 8 |
%global NEO_ENABLE_XE_EU_DEBUG_SUPPORT FALSE |
| 9 |
%global NEO_USE_XE_EU_DEBUG_EXP_UPSTREAM FALSE |
| 10 |
%global NEO_I915_PRELIM_HEADERS_DIR %{nil} |
| 11 |
|
| 12 |
%define _source_payload w5T16.xzdio |
| 13 |
%define _binary_payload w5T16.xzdio |
| 14 |
|
| 15 |
Name: intel-level-zero-gpu |
| 16 |
Version: %{ver} |
| 17 |
Release: %{rel}%{?dist} |
| 18 |
Summary: Intel(R) GPU Driver for oneAPI Level Zero. |
| 19 |
|
| 20 |
Group: System Environment/Libraries |
| 21 |
License: MIT |
| 22 |
URL: https://github.com/intel/compute-runtime |
| 23 |
Source0: %{url}/archive/%{version}/compute-runtime.tar.xz |
| 24 |
Source1: copyright |
| 25 |
%if "%{NEO_I915_PRELIM_HEADERS_DIR}" != "" |
| 26 |
Source2: uapi.tar.xz |
| 27 |
%endif |
| 28 |
|
| 29 |
BuildRequires: libva-devel gcc-c++ cmake ninja-build make |
| 30 |
BuildRequires: intel-gmmlib-devel |
| 31 |
BuildRequires: intel-igc-opencl-devel |
| 32 |
|
| 33 |
Requires: intel-gmmlib |
| 34 |
Requires: intel-igc-opencl-2 |
| 35 |
|
| 36 |
%description |
| 37 |
Runtime library providing the ability to use Intel GPUs with the oneAPI Level |
| 38 |
Zero programming interface. |
| 39 |
Level Zero is the primary low-level interface for language and runtime |
| 40 |
libraries. Level Zero offers fine-grain control over accelerators capabilities, |
| 41 |
delivering a simplified and low-latency interface to hardware, and efficiently |
| 42 |
exposing hardware capabilities to applications. |
| 43 |
|
| 44 |
%package -n intel-level-zero-gpu-devel |
| 45 |
Summary: Development files for Intel(R) GPU Driver for oneAPI Level Zero. |
| 46 |
Group: Development/Libraries/C and C++ |
| 47 |
Requires: intel-level-zero-gpu = %{version} |
| 48 |
Provides: intel-level-zero-gpu-devel |
| 49 |
|
| 50 |
%description -n intel-level-zero-gpu-devel |
| 51 |
Intel(R) Graphics Compute Runtime for oneAPI Level Zero - development headers |
| 52 |
|
| 53 |
%define debug_package %{nil} |
| 54 |
|
| 55 |
%prep |
| 56 |
%if "%{NEO_I915_PRELIM_HEADERS_DIR}" == "" |
| 57 |
%autosetup -p1 -n compute-runtime |
| 58 |
%else |
| 59 |
%autosetup -p1 -n compute-runtime -b 2 |
| 60 |
%endif |
| 61 |
|
| 62 |
%build |
| 63 |
mkdir build |
| 64 |
cd build |
| 65 |
%cmake .. \ |
| 66 |
-GNinja ${NEO_BUILD_EXTRA_OPTS} \ |
| 67 |
-DNEO_VERSION_BUILD=%{build_id} \ |
| 68 |
-DCMAKE_BUILD_TYPE=Release \ |
| 69 |
-DNEO_BUILD_WITH_OCL=FALSE \ |
| 70 |
-DNEO_SKIP_UNIT_TESTS=TRUE \ |
| 71 |
-DNEO_ENABLE_I915_PRELIM_DETECTION=%{NEO_ENABLE_I915_PRELIM_DETECTION} \ |
| 72 |
-DNEO_ENABLE_XE_PRELIM_DETECTION=%{NEO_ENABLE_XE_PRELIM_DETECTION} \ |
| 73 |
-DNEO_ENABLE_XE_EU_DEBUG_SUPPORT=%{NEO_ENABLE_XE_EU_DEBUG_SUPPORT} \ |
| 74 |
-DNEO_USE_XE_EU_DEBUG_EXP_UPSTREAM=%{NEO_USE_XE_EU_DEBUG_EXP_UPSTREAM} \ |
| 75 |
-DRELEASE_WITH_REGKEYS=%{NEO_RELEASE_WITH_REGKEYS} \ |
| 76 |
-DL0_INSTALL_UDEV_RULES=1 \ |
| 77 |
-DUDEV_RULES_DIR=/etc/udev/rules.d/ \ |
| 78 |
-DCMAKE_VERBOSE_MAKEFILE=FALSE \ |
| 79 |
-DNEO_I915_PRELIM_HEADERS_DIR=$(realpath %{NEO_I915_PRELIM_HEADERS_DIR}) |
| 80 |
%ninja_build |
| 81 |
|
| 82 |
%install |
| 83 |
cd build |
| 84 |
%ninja_install |
| 85 |
|
| 86 |
#Remove OpenCL files |
| 87 |
rm -rvf %{buildroot}%{_libdir}/intel-opencl/ |
| 88 |
rm -rvf %{buildroot}%{_sysconfdir}/OpenCL/ |
| 89 |
rm -rvf %{buildroot}%{_bindir}/ocloc |
| 90 |
rm -rvf %{buildroot}%{_libdir}/libocloc.so |
| 91 |
rm -rvf %{buildroot}%{_includedir}/ocloc_api.h |
| 92 |
#Remove debug files |
| 93 |
rm -vf %{buildroot}/%{_libdir}/intel-opencl/libigdrcl.so.debug |
| 94 |
rm -vf %{buildroot}/%{_libdir}/libocloc.so.debug |
| 95 |
rm -rvf %{buildroot}/usr/lib/debug/ |
| 96 |
#insert license into package |
| 97 |
mkdir -p %{buildroot}/usr/share/doc/intel-level-zero-gpu/ |
| 98 |
cp -pvR %{_sourcedir}/copyright %{buildroot}/usr/share/doc/intel-level-zero-gpu/. |
| 99 |
|
| 100 |
if [ -d "${NEO_NINJA_DUMP}" ]; then |
| 101 |
cp -v .ninja* ${NEO_NINJA_DUMP}/ |
| 102 |
fi |
| 103 |
|
| 104 |
%files |
| 105 |
%defattr(-,root,root) |
| 106 |
%{_libdir}/libze_intel_gpu.so.* |
| 107 |
/usr/share/doc/intel-level-zero-gpu/copyright |
| 108 |
%config(noreplace) |
| 109 |
|
| 110 |
%files devel |
| 111 |
%{_includedir}/level_zero/zet_intel_gpu_debug.h |
| 112 |
|
| 113 |
%doc |
| 114 |
|
| 115 |
%changelog |
| 116 |
* Mon Aug 10 2020 Spruit, Neil R <[email protected]> - 1.0.17625 |
| 117 |
- Update to 1.0.17625 |
| 118 |
|
| 119 |
* Tue Apr 28 2020 Jacek Danecki <[email protected]> - 0.8.16582-1 |
| 120 |
- Update to 0.8.16582 |
| 121 |
|
| 122 |
* Tue Mar 24 2020 Spruit, Neil R <[email protected]> - 0.8.0 |
| 123 |
* Update to 0.8.0 |
| 124 |
|
| 125 |
* Fri Mar 13 2020 Pavel Androniychuk <[email protected]> - 0.4.1 |
| 126 |
- Spec file init |