2021-05-27 11:53:50 +00:00
|
|
|
#it's changed by external script
|
|
|
|
|
%global rel i1
|
|
|
|
|
%global ver xxx
|
|
|
|
|
|
|
|
|
|
%define _source_payload w5T16.xzdio
|
|
|
|
|
%define _binary_payload w5T16.xzdio
|
|
|
|
|
|
2021-11-01 22:50:01 +00:00
|
|
|
Name: intel-opencl
|
2021-05-27 11:53:50 +00:00
|
|
|
Epoch: 1
|
|
|
|
|
Version: %{ver}
|
|
|
|
|
Release: %{rel}%{?dist}
|
|
|
|
|
Summary: Intel(R) Graphics Compute Runtime for OpenCL(TM)
|
|
|
|
|
|
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://github.com/intel/compute-runtime
|
|
|
|
|
Source0: %{url}/archive/%{version}/compute-runtime-%{version}.tar.xz
|
|
|
|
|
Source1: copyright
|
|
|
|
|
|
|
|
|
|
Requires: intel-gmmlib
|
|
|
|
|
Requires: intel-igc-opencl
|
|
|
|
|
|
|
|
|
|
BuildRequires: make libva-devel gcc-c++ cmake
|
|
|
|
|
BuildRequires: intel-gmmlib-devel
|
|
|
|
|
BuildRequires: intel-igc-opencl-devel
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Intel(R) Graphics Compute Runtime for OpenCL(TM) is a open source project to converge Intel's development efforts on OpenCL(TM) compute stacks supporting the GEN graphics hardware architecture.
|
|
|
|
|
|
|
|
|
|
%package -n intel-ocloc
|
|
|
|
|
Summary: ocloc package for opencl
|
|
|
|
|
Requires: intel-igc-opencl
|
|
|
|
|
%description -n intel-ocloc
|
|
|
|
|
Intel(R) Graphics Compute Runtime for OpenCL(TM) is a open source project to converge Intel's development efforts on OpenCL(TM) compute stacks supporting the GEN graphics hardware architecture.
|
|
|
|
|
|
|
|
|
|
%define debug_package %{nil}
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -p1 -n compute-runtime-%{ver}
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
mkdir build
|
|
|
|
|
cd build
|
2021-09-14 11:30:03 +02:00
|
|
|
%cmake .. \
|
2021-08-18 10:15:28 +00:00
|
|
|
-DNEO_VERSION_BUILD=%{ver} \
|
2021-05-27 11:53:50 +00:00
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
|
-DBUILD_WITH_L0=0 \
|
2021-11-10 10:34:06 +00:00
|
|
|
-DNEO_SKIP_UNIT_TESTS=TRUE \
|
2021-05-27 11:53:50 +00:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
|
-DRELEASE_WITH_REGKEYS=1
|
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
cd build
|
|
|
|
|
%make_install
|
|
|
|
|
chmod +x %{buildroot}/%{_libdir}/intel-opencl/libigdrcl.so
|
|
|
|
|
chmod +x %{buildroot}/%{_libdir}/libocloc.so
|
|
|
|
|
rm -f %{buildroot}/%{_libdir}/intel-opencl/libigdrcl.so.debug
|
|
|
|
|
rm -f %{buildroot}/%{_libdir}/libocloc.so.debug
|
|
|
|
|
rm -rf %{buildroot}/usr/lib/debug/
|
|
|
|
|
#insert license into package
|
|
|
|
|
mkdir -p %{buildroot}/usr/share/doc/intel-opencl/
|
|
|
|
|
cp -pR %{_sourcedir}/copyright %{buildroot}/usr/share/doc/intel-opencl/.
|
|
|
|
|
mkdir -p %{buildroot}/usr/share/doc/intel-ocloc/
|
|
|
|
|
cp -pR %{_sourcedir}/copyright %{buildroot}/usr/share/doc/intel-ocloc/.
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_libdir}/intel-opencl/libigdrcl.so
|
|
|
|
|
%config(noreplace)
|
|
|
|
|
/etc/OpenCL/vendors/intel.icd
|
|
|
|
|
/usr/share/doc/intel-opencl/copyright
|
|
|
|
|
|
|
|
|
|
%files -n intel-ocloc
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_bindir}/ocloc
|
|
|
|
|
%{_libdir}/libocloc.so
|
|
|
|
|
%{_includedir}/ocloc_api.h
|
|
|
|
|
%config(noreplace)
|
|
|
|
|
/usr/share/doc/intel-ocloc/copyright
|
|
|
|
|
|
|
|
|
|
%doc
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed May 6 2020 Pavel Androniychuk <pavel.androniychuk@intel.com> - 20.17.16650
|
|
|
|
|
- Update spec files to pull version automatically.
|
|
|
|
|
|
|
|
|
|
* Tue Apr 28 2020 Jacek Danecki <jacek.danecki@intel.com> - 20.16.16582-1
|
|
|
|
|
- Update to 20.16.16582
|
|
|
|
|
|
|
|
|
|
* Tue Mar 03 2020 Jacek Danecki <jacek.danecki@intel.com> - 20.08.15750-1
|
|
|
|
|
- Update to 20.08.15750
|
|
|
|
|
|
|
|
|
|
* Tue Jan 14 2020 Jacek Danecki <jacek.danecki@intel.com> - 20.01.15264-1
|
|
|
|
|
- Update to 20.01.15264
|
|
|
|
|
- Updated IGC
|
|
|
|
|
- Updated gmmlib
|