%global llvm_commit llvmorg-10.0.0 %global opencl_clang_commit 10.0.0 %global spirv_llvm_translator_commit 424e375edc4b915218ab5d1f08670a8d1e92c9d3 %global llvm_patches_commit 595c1e3eeb30afc8b6c20855f6a69560f7a9864a %global igc_commit 18081c401f7bbfeefede84572a066f038a2d0709 %global patch_version 4062 Name: intel-igc Version: 1.0.4062 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://github.com/intel/opencl-clang/archive/v%{opencl_clang_commit}/intel-opencl-clang.tar.gz Source2: https://github.com/KhronosGroup/SPIRV-LLVM-Translator/archive/%{spirv_llvm_translator_commit}/spirv-llvm-translator.tar.gz Source3: https://github.com/llvm/llvm-project/archive/%{llvm_commit}/llvm-project.tar.gz Source4: https://github.com/intel/llvm-patches/archive/%{llvm_patches_commit}/llvm-patches.tar.gz 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} %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 mv llvm-project/clang llvm-project/llvm/tools/ pushd llvm-project/llvm/projects mkdir opencl-clang llvm-spirv tar xzf $RPM_SOURCE_DIR/intel-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 mkdir llvm_patches tar xzf $RPM_SOURCE_DIR/llvm-patches.tar.gz -C llvm_patches --strip-components=1 %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 %make_install -C build 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 %files core %{_libdir}/libiga64.so.1 %{_libdir}/libiga64.so.%{version} %{_libdir}/libigc.so.1 %{_libdir}/libigc.so.%{version} %{_bindir}/iga64 %files opencl %{_libdir}/libigdfcl.so.1 %{_libdir}/libigdfcl.so.%{version} /usr/lib64/libopencl-clang.so.10 %files opencl-devel %{_includedir}/igc/* %{_includedir}/iga/* %{_includedir}/visa/* %{_libdir}/libiga64.so %{_libdir}/libigc.so %{_libdir}/libigdfcl.so %{_libdir}/pkgconfig/* %doc %changelog * 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