Add BiSheng Autotuner support
Signed-off-by: liyunfei <liyunfei33@huawei.com> (cherry picked from commit c56927a0ec18bb14e65bd8a8e7c482bf06735ca1)
This commit is contained in:
parent
0124e5aef1
commit
238aae5921
@ -1,8 +1,9 @@
|
|||||||
%global spirv_headers_version 1.3.261.1
|
%global spirv_headers_version 1.3.261.1
|
||||||
|
%bcond_without bisheng_autotuner
|
||||||
|
|
||||||
Name: spirv-llvm-translator
|
Name: spirv-llvm-translator
|
||||||
Version: 17.0.0
|
Version: 17.0.0
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: LLVM to SPIRV Translator
|
Summary: LLVM to SPIRV Translator
|
||||||
|
|
||||||
License: NCSA
|
License: NCSA
|
||||||
@ -50,6 +51,9 @@ mv SPIRV-Headers-sdk-%{spirv_headers_version} SPIRV-Headers
|
|||||||
-DLLVM_BUILD_TOOLS=ON \
|
-DLLVM_BUILD_TOOLS=ON \
|
||||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||||
-DLLVM_EXTERNAL_SPIRV_HEADERS_SOURCE_DIR=%{_builddir}/SPIRV-Headers \
|
-DLLVM_EXTERNAL_SPIRV_HEADERS_SOURCE_DIR=%{_builddir}/SPIRV-Headers \
|
||||||
|
%if %{with bisheng_autotuner}
|
||||||
|
-DLLVM_ENABLE_AUTOTUNER=ON \
|
||||||
|
%endif
|
||||||
-DCMAKE_INSTALL_RPATH:BOOL=";"
|
-DCMAKE_INSTALL_RPATH:BOOL=";"
|
||||||
%ninja_build
|
%ninja_build
|
||||||
#%cmake_build
|
#%cmake_build
|
||||||
@ -71,6 +75,9 @@ mv SPIRV-Headers-sdk-%{spirv_headers_version} SPIRV-Headers
|
|||||||
%{_libdir}/pkgconfig/LLVMSPIRVLib.pc
|
%{_libdir}/pkgconfig/LLVMSPIRVLib.pc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Aug 20 2024 liyunfei <liyunfei33@huawei.com> - 17.0.0-2
|
||||||
|
- Add BiSheng Autotuner support.
|
||||||
|
|
||||||
* Tue Dec 5 2023 zhoujing <zhoujing106@huawei.com> - 17.0.0-1
|
* Tue Dec 5 2023 zhoujing <zhoujing106@huawei.com> - 17.0.0-1
|
||||||
- Update to 17.0.0
|
- Update to 17.0.0
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user