## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## 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 24 %global neo_minor 35 %global neo_build 30872.32 Name: intel-compute-runtime Version: %{neo_major}.%{neo_minor}.%{neo_build} Release: %autorelease Summary: Compute API support for Intel graphics %global _lto_cflags %{nil} %global optflags %{optflags} -Wno-error=maybe-uninitialized License: MIT URL: https://github.com/intel/compute-runtime Source0: %{url}/archive/%{version}/compute-runtime-%{version}.tar.gz # https://github.com/intel/compute-runtime/pull/761 # CL/GL sharing fixups Patch01: 761.patch # Support opencl-headers-2024.10.24 Patch02: 0001-CL-Headers-2024.10.24.patch # This is just for Intel GPUs ExclusiveArch: x86_64 BuildRequires: cmake BuildRequires: make BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: intel-gmmlib-devel BuildRequires: libva-devel BuildRequires: libdrm-devel BuildRequires: kernel-devel BuildRequires: intel-igc-devel BuildRequires: ninja-build BuildRequires: libglvnd-devel BuildRequires: ocl-icd-devel BuildRequires: opencl-headers BuildRequires: oneapi-level-zero-devel # 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 providing compute API support (Level Zero, OpenCL) for Intel graphics hardware architectures (HD Graphics, Xe). %package -n intel-ocloc Summary: Tool for managing Intel Compute GPU device binary format %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 Implementation for the Intel GPUs of the oneAPI L0 specification - which provides direct-to-metal interfaces to offload accelerator devices. Its programming interface can be tailored to any device needs and can be adapted to support broader set of languages features such as function pointers, virtual functions, unified memory, and I/O capabilities.. %prep %autosetup -p1 -n compute-runtime-%{version} # remove sse2neon completely as we're building just for x86(_64) rm -rv third_party/sse2neon # bundled CL headers are leaking into the build rm -rv third_party/opencl_headers/CL ln -s /usr/include/CL/ third_party/opencl_headers/CL %build # -DNEO_DISABLE_LD_GOLD=1 for https://bugzilla.redhat.com/show_bug.cgi?id=2043178 and https://bugzilla.redhat.com/show_bug.cgi?id=2043758 %cmake \ -DCMAKE_BUILD_TYPE=Release \ -DNEO_OCL_VERSION_MAJOR=%{neo_major} \ -DNEO_OCL_VERSION_MINOR=%{neo_minor} \ -DNEO_VERSION_BUILD=%{neo_build} \ -DSKIP_UNIT_TESTS=1 \ -DNEO_DISABLE_LD_GOLD=1 \ -DKHRONOS_GL_HEADERS_DIR="/usr/include/GL/" \ -DKHRONOS_HEADERS_DIR="/usr/include/CL/" \ -DNEO_DRM_HEADERS_DIR="/usr/src/kernels/`rpm -q --queryformat '%{Version}-%{Release}.%{Arch}\n' kernel-devel | tail -n1`/include/uapi/drm/" \ -DNEO_I915_HEADERS_DIR="/usr/src/kernels/`rpm -q --queryformat '%{Version}-%{Release}.%{Arch}\n' kernel-devel | tail -n1`/include/uapi/drm/" \ -DNEO_XE_HEADERS_DIR="/usr/src/kernels/`rpm -q --queryformat '%{Version}-%{Release}.%{Arch}\n' kernel-devel | tail -n1`/include/uapi/drm/" \ -DCL_TARGET_OPENCL_VERSION=300 \ -G Ninja %cmake_build %install %cmake_install # Symlink to provide ocloc pushd %{buildroot}%{_bindir} ln -s ocloc-* ocloc popd %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.* %{_includedir}/level_zero/zet_intel_gpu_debug.h %files -n intel-ocloc %license LICENSE.md %{_bindir}/ocloc %{_bindir}/ocloc-* %{_libdir}/libocloc.so %files -n intel-ocloc-devel %{_includedir}/ocloc_api.h %doc %changelog ## START: Generated by rpmautospec * 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