File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ components:
1717 branch : infra
1818 clean_on_sync : true
1919 dest_dir : infra
20- revision : a228519d4601f11ceef1f3cce1f013277be14388
20+ revision : 9343fbf2e206466fc0485d7cd2952e0535c91be2
2121 type : git
2222 internal :
2323 branch : master
Original file line number Diff line number Diff line change @@ -12,7 +12,14 @@ URL: https://github.com/intel/compute-runtime
1212Source0: https://github.com/intel/compute-runtime/archive/%{neo_commit_id}/neo.tar.gz
1313Source1: https://github.com/intel/gmmlib/archive/%{gmmlib_commit_id}/gmmlib.tar.gz
1414
15+ %if 0%{?el7}
16+ BuildRequires: centos-release-scl epel-release
17+ BuildRequires: devtoolset-4-gcc-c++ cmake3
18+ BuildRequires: gcc-c++ ninja-build make procps python2 libva-devel
19+ %else
1520BuildRequires: cmake clang gcc-c++ ninja-build make procps python2 sed libva-devel
21+ %endif
22+
1623BuildRequires: intel-igc-opencl-devel >= __IGC_VERSION_REQUIRED__
1724Requires: intel-igc-opencl >= __IGC_VERSION_REQUIRED__
1825
@@ -32,8 +39,15 @@ tar xzf $RPM_SOURCE_DIR/gmmlib.tar.gz -C gmmlib --strip-components=1
3239
3340mkdir build
3441cd build
42+
43+ %if 0%{?el7}
44+ scl enable devtoolset-4 "cmake3 ../neo -DCMAKE_BUILD_TYPE=Release -DNEO_DRIVER_VERSION=%{version}"
45+ scl enable devtoolset-4 "make -j`nproc` igdrcl_dll"
46+ %else
3547cmake ../neo -DCMAKE_BUILD_TYPE=Release -DNEO_DRIVER_VERSION=%{version}
3648make -j`nproc` igdrcl_dll
49+ %endif
50+
3751echo "==== DONE ===="
3852
3953
You can’t perform that action at this time.
0 commit comments