## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global neo_major 26 %global neo_minor 22 %global neo_build 38646 %global neo_hotfix 6 %if 0%{?rhel} %global use_system_headers 0 %else %global use_system_headers 1 %endif Name: intel-compute-runtime Version: %{neo_major}.%{neo_minor}.%{neo_build}.%{neo_hotfix} Release: %autorelease Summary: Intel Graphics Compute Runtime for oneAPI Level Zero and OpenCL License: MIT URL: https://github.com/intel/compute-runtime Source0: %{url}/archive/%{version}/compute-runtime-%{version}.tar.gz # This is just for Intel GPUs, which exist in PCIE form factor, which # means we should build this everywhere. # ExclusiveArch: x86_64 BuildRequires: cmake BuildRequires: make BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: intel-gmmlib-devel BuildRequires: libva-devel BuildRequires: libdrm-devel BuildRequires: intel-igc-devel BuildRequires: intel-opencl-clang BuildRequires: ninja-build BuildRequires: libnl3-devel BuildRequires: ocl-icd-devel BuildRequires: opencl-headers BuildRequires: oneapi-level-zero-devel BuildRequires: spirv-tools-devel #Need libudev headers BuildRequires: systemd-devel %if 0%{?use_system_headers} BuildRequires: opencl-headers BuildRequires: libglvnd-devel BuildRequires: spirv-headers-devel %endif # This doesn't get added automatically, so specify it explicitly Requires: intel-igc # Let compute-runtime be a meta package for intel-ocloc, intel-opencl and intel-level-zero Requires: intel-ocloc = %{version}-%{release} Requires: intel-opencl = %{version}-%{release} Requires: intel-level-zero = %{version}-%{release} # prelim/drm Provides: bundled(drm-uapi-helper) %description The Intel Graphics Compute Runtime for oneAPI Level Zero and OpenCL Driver is an open-source project supporting computations for Intel graphics hardware architectures using oneAPI Level Zero and Open Computing Language (OpenCL) APIs. %package -n intel-ocloc Summary: Tool for managing Intel Compute GPU device binary format Requires: intel-igc-libs%{?_isa} %description -n intel-ocloc ocloc is a tool for managing Intel Compute GPU device binary format (a format used by Intel Compute GPU runtime). It can be used for generation (as part of 'compile' command) as well as manipulation (decoding/modifying - as part of 'disasm'/'asm' commands) of such binary files. %package -n intel-ocloc-devel Summary: Tool for managing Intel Compute GPU device binary format - Devel Files Requires: intel-ocloc%{?_isa} = %{version}-%{release} %description -n intel-ocloc-devel Devel files (headers and libraries) for developing against intel-ocloc (a tool for managing Intel Compute GPU device binary format). %package -n intel-opencl Summary: OpenCL support implementation for Intel GPUs Requires: intel-igc-libs%{?_isa} Requires: intel-gmmlib%{?_isa} %description -n intel-opencl Implementation for the Intel GPUs of the OpenCL specification - a generic compute oriented API. This code base contains the code to run OpenCL programs on Intel GPUs which basically defines and implements the OpenCL host functions required to initialize the device, create the command queues, the kernels and the programs and run them on the GPU. %package -n intel-level-zero Summary: oneAPI L0 support implementation for Intel GPUs Requires: intel-igc-libs%{?_isa} Requires: intel-gmmlib%{?_isa} # In some references, the package is named intel-level-zero-gpu, so provide that for convenience too Provides: intel-level-zero-gpu%{?_isa} %description -n intel-level-zero Runtime library providing the ability to use Intel GPUs with the oneAPI Level Zero programming interface. Level Zero is the primary low-level interface for language and runtime libraries. Level Zero offers fine-grain control over accelerators capabilities, delivering a simplified and low-latency interface to hardware, and efficiently exposing hardware capabilities to applications. %package -n intel-level-zero-devel Summary: oneAPI L0 support implementation for Intel GPUs - Devel Files Requires: intel-level-zero%{?_isa} = %{version}-%{release} %description -n intel-level-zero-devel Devel files for developing against intel-level-zero %prep %autosetup -p1 -n compute-runtime-%{version} # remove sse2neon completely as we're building just for x86(_64) rm -rv third_party/sse2neon %build # mitigations are handled by the kernel, unnecessary for the GPU/userspace # disabling mitigations adds up to 20% performance improvement %cmake \ -DCMAKE_BUILD_TYPE=Release \ -DNEO_OCL_VERSION_MAJOR=%{neo_major} \ -DNEO_OCL_VERSION_MINOR=%{neo_minor} \ -DNEO_VERSION_BUILD=%{neo_build} \ -DNEO_VERSION_HOTFIX=%{neo_hotfix} \ -DSKIP_UNIT_TESTS=1 \ %if 0%{?use_system_headers} -DKHRONOS_GL_HEADERS_DIR="/usr/include/GL/" \ -DKHRONOS_HEADERS_DIR="/usr/include/CL/" \ -DKHRONOS_SPIRV_HEADERS_DIR="/usr/include/spirv/" \ %endif -DNEO_ENABLE_I915_PRELIM_DETECTION=TRUE \ -DNEO_ENABLE_XE_PRELIM_DETECTION=TRUE \ -DNEO_DISABLE_MITIGATIONS=TRUE \ -G Ninja %cmake_build %install %cmake_install # Compute-runtime only creates a specific /usr/bin/ocloc-version binary, due to # the possibility of mutiple versions installed on the system. i.e. legacy pkg %post -n intel-ocloc update-alternatives --install /usr/bin/ocloc ocloc /usr/bin/ocloc-%{neo_major}.%{neo_minor}.1 %{neo_major}%{neo_minor}%{neo_build} %preun -n intel-ocloc if [ $1 == "0" ]; then # uninstall update-alternatives --remove ocloc /usr/bin/ocloc-%{neo_major}.%{neo_minor}.1 fi %files %files -n intel-opencl %license LICENSE.md %dir %{_libdir}/intel-opencl/ %{_libdir}/intel-opencl/libigdrcl.so %{_sysconfdir}/OpenCL/vendors/intel.icd %files -n intel-level-zero %license LICENSE.md %{_libdir}/libze_intel_gpu.so.* %files -n intel-level-zero-devel %{_includedir}/level_zero/*.h %{_includedir}/level_zero/driver_experimental/*.h %files -n intel-ocloc %license LICENSE.md %{_bindir}/ocloc-* %{_libdir}/libocloc.so %files -n intel-ocloc-devel %{_includedir}/ocloc_api.h %doc %changelog ## START: Generated by rpmautospec * Mon Oct 05 2026 Adam Jackson - 26.22.38646.6-3 - remove exclusivearch * Thu Jul 16 2026 Fedora Release Engineering - 26.22.38646.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild * Wed Jul 15 2026 Androniychuk, Pavel - 26.22.38646.6-1 - New release 26.22.38646.6 * Fri Jun 12 2026 Androniychuk, Pavel - 26.18.38308.4-1 - New hf version 26.18.38308.4 * Mon May 18 2026 Androniychuk, Pavel - 26.18.38308.1-1 - New version 26.18.38308.1 * Fri May 08 2026 Androniychuk, Pavel - 26.09.37435.12-2 - Rebuild with igc bundled headers and llvm * Mon Apr 13 2026 Androniychuk, Pavel - 26.09.37435.12-1 - New version 26.09.37435.12 * Wed Apr 01 2026 Androniychuk, Pavel - 26.09.37435.10-1 - New release 26.09.37435.10 * Mon Jan 26 2026 Androniychuk, Pavel - 25.48.36300.8-5 - Don't strip LTO * Fri Jan 16 2026 Androniychuk, Pavel - 25.48.36300.8-4 - Use spirv-headers * Thu Jan 15 2026 Androniychuk, Pavel - 25.48.36300.8-1 - Update to 25.48.36300.8 * Fri Nov 07 2025 Androniychuk, Pavel - 25.40.35563.4-1 - Update to 25.40.35563.4 * Wed Oct 01 2025 Androniychuk, Pavel - 25.35.35096.9-1 - Update to v25.35.35096.9 * Wed Sep 03 2025 Xavier Hallade - 25.31.34666.3-2 - Fix #2392875 - Malformed L0 driver version string * Thu Aug 28 2025 Androniychuk, Pavel - 25.31.34666.3-1 - Update to 25.31.34666.3 * Wed Aug 06 2025 Androniychuk, Pavel - 25.27.34303.9-1 - Update to ver 25.27.34303.9 * Thu Jul 24 2025 Fedora Release Engineering - 25.22.33944.12-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Wed Jul 16 2025 František Zatloukal - 25.22.33944.12-4 - Rebuild * Wed Jul 16 2025 František Zatloukal - 25.22.33944.12-3 - Fixup scriptlets (RHBZ#2380138) * Tue Jul 08 2025 Androniychuk, Pavel - 25.22.33944.12-2 - Disable mitigations * Mon Jul 07 2025 Androniychuk, Pavel - 25.22.33944.12-1 - Update version to 25.22.33944.12 * Thu Jun 26 2025 František Zatloukal - 25.22.33944.8-1 - intel-compute-runtime-25.22.33944.8 * Mon Jun 23 2025 Androniychuk, Pavel - 25.18.33578.13-1 - Update to v25.18.33578.13 * Thu Feb 13 2025 František Zatloukal - 25.05.32567.12-1 - intel-compute-runtime-25.05.32567.12 (RHBZ#2340650 , RHBZ#2320582) * Fri Jan 17 2025 Fedora Release Engineering - 24.35.30872.32-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Tue Dec 03 2024 František Zatloukal - 24.35.30872.32-2 - Support opencl-headers-2024.10.24 * Tue Dec 03 2024 František Zatloukal - 24.35.30872.32-1 - intel-compute-runtime-24.35.30872.32 * Tue Sep 24 2024 František Zatloukal - 24.35.30872.24-1 - intel-compute-runtime-24.35.30872.24 (RHBZ#2274087) * Fri Aug 02 2024 František Zatloukal - 24.26.30049.6-1 - intel-compute-runtime-24.26.30049.6 * Thu Jul 18 2024 Fedora Release Engineering - 24.09.28717.17-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Wed Apr 03 2024 František Zatloukal - 24.09.28717.17-1 - intel-compute-runtime-24.09.28717.17 (fixes rhbz#2272873) * Tue Apr 02 2024 František Zatloukal - 24.09.28717.12-3 - Backport fix for kernel >= 6.8 (rhbz#2272624) * Wed Mar 27 2024 Frantisek Zatloukal - 24.09.28717.12-1 - intel-compute-runtime-24.09.28717.12 (fixes RHBZ#2242512 and RHBZ#2261248) * Wed Jan 24 2024 Fedora Release Engineering - 23.35.27191.9-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sat Jan 20 2024 Fedora Release Engineering - 23.35.27191.9-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Oct 06 2023 Frantisek Zatloukal - 23.35.27191.9-1 - intel-compute-runtime-23.35.27191.9 (fixes RHBZ#2184964) * Thu Jul 20 2023 Fedora Release Engineering - 23.05.25593.18-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Mon Mar 27 2023 Frantisek Zatloukal - 23.05.25593.18-1 - intel-compute-runtime-23.05.25593.18 (fixes RHBZ#2176000 ) * Mon Mar 06 2023 Frantisek Zatloukal - 23.05.25593.9-1 - intel-compute-runtime-23.05.25593.9 * Fri Feb 17 2023 Frantisek Zatloukal - 22.53.25242.13-1 - intel-compute-runtime-22.53.25242.13 - level-zero enablement * Thu Jan 19 2023 Fedora Release Engineering - 22.43.24558-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Tue Nov 29 2022 Frantisek Zatloukal - 22.43.24558-1 - intel-compute-runtime-22.43.24558 (fixes RHBZ#2135350 ) * Tue Aug 30 2022 Frantisek Zatloukal - 22.34.24023-1 - intel-compute-runtime-22.34.24023 * Wed Aug 17 2022 Frantisek Zatloukal - 22.32.23937-1 - intel-compute-runtime-22.32.23937 * Wed Aug 10 2022 Frantisek Zatloukal - 22.31.23852-1 - intel-compute-runtime-22.31.23852 * Thu Jul 21 2022 Fedora Release Engineering - 22.26.23599-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jul 01 2022 Frantisek Zatloukal - 22.26.23599-1 - intel-compute-runtime-22.26.23599 * Sun May 29 2022 Frantisek Zatloukal - 22.21.23269-1 - intel-compute-runtime-22.21.23269 * Mon Mar 21 2022 Frantisek Zatloukal - 22.11.22682-1 - intel-compute-runtime-22.11.22682 * Sat Mar 19 2022 Frantisek Zatloukal - 22.10.22597-1 - intel-compute-runtime-22.10.22597 - disable lto and share libs * Thu Mar 03 2022 Frantisek Zatloukal - 22.08.22549-1 - intel-compute-runtime-22.08.22549 * Fri Feb 18 2022 Frantisek Zatloukal - 22.07.22465-1 - intel-compute-runtime-22.07.22465 * Mon Dec 27 2021 Frantisek Zatloukal - 22.04.22286-1 - Initial package ## END: Generated by rpmautospec