%global llvm_commit llvmorg-10.0.0 %global opencl_clang_commit c8cd72e32b6abc18ce6da71c357ea45ba78b52f0 %global igc_commit igc-1.0.7862 %global patch_version 7862 %global vc_commit 069ced1e8a408d8b602b3b210017603792df6260 %global src 21.27.20266 Name: intel-igc Version: 1.0.7862 Release: 1%{?dist} Summary: Intel(R) Graphics Compiler for OpenCL(TM) Group: System Environment/Libraries License: MIT URL: https://github.com/intel/intel-graphics-compiler Source0: %{url}/archive/%{igc_commit}/igc-%{version}.tar.gz Source1: https://downloads.sourceforge.net/project/intel-compute-runtime/%{src}/src/opencl-clang.tar.gz Source2: https://downloads.sourceforge.net/project/intel-compute-runtime/%{src}/src/spirv-llvm-translator.tar.gz Source3: https://downloads.sourceforge.net/project/intel-compute-runtime/%{src}/src/llvm-project.tar.gz Source4: https://github.com/intel/vc-intrinsics/archive/%{vc_commit}/vc-intrinsics.tar.gz Patch0: %{url}/commit/c9eb6d65deccc25f358375b57193e825f4a0bb37.patch BuildRequires: cmake gcc-c++ make flex bison python3 pkg-config git %description Intel(R) Graphics Compiler for OpenCL(TM). %package core Summary: Intel(R) Graphics Compiler Core %description core %package opencl Summary: Intel(R) Graphics Compiler Frontend Requires: %{name}-core = %{version}-%{release} Conflicts: intel-opencl-clang Provides: devel(libopencl-clang(64bit)) %description opencl %package opencl-devel Summary: Intel(R) Graphics Compiler development package Requires: %{name}-opencl = %{version}-%{release} %description opencl-devel %prep mkdir llvm-project tar xzf $RPM_SOURCE_DIR/llvm-project.tar.gz -C llvm-project --strip-components=1 pushd llvm-project/llvm/projects mkdir opencl-clang llvm-spirv tar xzf $RPM_SOURCE_DIR/opencl-clang.tar.gz -C opencl-clang --strip-components=1 tar xzf $RPM_SOURCE_DIR/spirv-llvm-translator.tar.gz -C llvm-spirv --strip-components=1 popd mkdir igc tar xzf $RPM_SOURCE_DIR/igc-%{version}.tar.gz -C igc --strip-components=1 cd igc patch -p1 < $RPM_SOURCE_DIR/c9eb6d65deccc25f358375b57193e825f4a0bb37.patch cd .. mkdir vc-intrinsics tar xzf $RPM_SOURCE_DIR/vc-intrinsics.tar.gz -C vc-intrinsics --strip-components=1 git config --global user.email "jacek.danecki@intel.com" git config --global user.name "Jacek Danecki" %build mkdir build pushd build cmake ../igc -Wno-dev -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr \ -DIGC_PACKAGE_RELEASE=%{patch_version} %make_build popd %install cd build %make_install rm -fv $RPM_BUILD_ROOT/usr/bin/GenX_IR rm -fv $RPM_BUILD_ROOT/usr/bin/clang-10 rm -fv $RPM_BUILD_ROOT/usr/include/opencl-c.h rm -fv $RPM_BUILD_ROOT/usr/include/opencl-c-base.h chmod +x $RPM_BUILD_ROOT/usr/lib64/libopencl-clang.so.10 rm -fv $RPM_BUILD_ROOT/usr/bin/lld rm -fv $RPM_BUILD_ROOT/usr/lib/debug/usr/bin/lld*.debug %files core %defattr(-,root,root) %{_libdir}/libiga64.so.1 %{_libdir}/libiga64.so.%{version} %{_libdir}/libigc.so.1 %{_libdir}/libigc.so.%{version} %{_bindir}/iga64 %{_libdir}/igc/NOTICES.txt %{_libdir}/libSPIRVDLL.so %files opencl %defattr(-,root,root) %{_libdir}/libigdfcl.so.1 %{_libdir}/libigdfcl.so.%{version} %{_libdir}/libopencl-clang.so.* %files opencl-devel %defattr(-,root,root) %{_includedir}/igc/* %{_includedir}/iga/* %{_includedir}/visa/* %{_libdir}/libiga64.so %{_libdir}/libigc.so %{_libdir}/libigdfcl.so %{_libdir}/pkgconfig/* %doc %changelog * Tue Jul 13 2021 Jacek Danecki - 1.0.7862-1 - Update to 1.0.7862 * Fri Jun 18 2021 Jacek Danecki - 1.0.7780-1 - Update to 1.0.7780 * Wed Jun 16 2021 Jacek Danecki - 1.0.7712-1 - Update to 1.0.7712 * Fri May 21 2021 Jacek Danecki - 1.0.7423-1 - Update to 1.0.7423 * Wed Mar 24 2021 Jacek Danecki - 1.0.6748-1 - Update to 1.0.6748 * Wed Mar 24 2021 Jacek Danecki - 1.0.6712-1 - Update to 1.0.6712 * Mon Mar 15 2021 Jacek Danecki - 1.0.6646-1 - Update to 1.0.6646 * Mon Jul 20 2020 Jacek Danecki - 1.0.4361-1 - Update to 1.0.4361 * Fri Jul 10 2020 Jacek Danecki - 1.0.4312-1 - Update to 1.0.4312 * Mon Jun 29 2020 Jacek Danecki - 1.0.4241-1 - Update to 1.0.4241 * Tue Jun 09 2020 Jacek Danecki - 1.0.4154-1 - Update to 1.0.4154 * Fri Jun 05 2020 Jacek Danecki - 1.0.4116-1 - Update to 1.0.4116 * Tue May 26 2020 Jacek Danecki - 1.0.4062-1 - Update to 1.0.4062 * Wed May 20 2020 Jacek Danecki - 1.0.4036-1 - Update to 1.0.4036 * Tue May 12 2020 Jacek Danecki - 1.0.3977-1 - Update to 1.0.3977 * Thu May 07 2020 Jacek Danecki - 1.0.3951-1 - Update to 1.0.3951 * Wed Apr 29 2020 Jacek Danecki - 1.0.3899-1 - Update to 1.0.3899 * Tue Apr 21 2020 Jacek Danecki - 1.0.3826-1 - Update to 1.0.3826 * Wed Apr 15 2020 Jacek Danecki - 1.0.3800-1 - Update to 1.0.3800 * Wed Apr 08 2020 Jacek Danecki - 1.0.3752-1 - Update to 1.0.3752 * Tue Apr 07 2020 Jacek Danecki - 1.0.3750-1 - Update to 1.0.3750 * Wed Mar 25 2020 Jacek Danecki - 1.0.3627-1 - Update to 1.0.3627 * Tue Mar 17 2020 Jacek Danecki - 1.0.3572-1 - Update to 1.0.3572 * Mon Mar 09 2020 Jacek Danecki - 1.0.3529-1 - Update to 1.0.3529 * Mon Feb 24 2020 Jacek Danecki - 1.0.3445-1 - Update to 1.0.3445 * Tue Feb 18 2020 Jacek Danecki - 1.0.3390-1 - Update to 1.0.3390 * Wed Feb 12 2020 Jacek Danecki - 1.0.3342-1 - Update to 1.0.3342 * Tue Feb 04 2020 Jacek Danecki - 1.0.3289-1 - Update to 1.0.3289 * Wed Jan 15 2020 Jacek Danecki - 1.0.3151-1 - Update to 1.0.3151 * Tue Dec 10 2019 Jacek Danecki - 1.0.3041-1 - Update to 1.0.3041 * Mon Dec 02 2019 Jacek Danecki - 1.0.2990-1 - Update to 1.0.2990 * Tue Nov 26 2019 Jacek Danecki - 1.0.2972-1 - Update to 1.0.2972 * Tue Nov 26 2019 Jacek Danecki - 1.0.2934-1 - Update to 1.0.2934 * Thu Nov 21 2019 Jacek Danecki - 1.0.2916-1 - Update to 1.0.2916 * Wed Nov 20 2019 Jacek Danecki - 1.0.2878-1 - Update to 1.0.2878 * Thu Nov 14 2019 Jacek Danecki - 1.0.2805-1 - Update to 1.0.2805 * Wed Oct 30 2019 Jacek Danecki - 1.0.2714.1-1 - Update to 1.0.2714.1 - Switch to llvm/clang 9.0.0 - Include opencl-clang library