Add BiSheng Autotuner support

Signed-off-by: liyunfei <liyunfei33@huawei.com>
(cherry picked from commit c56927a0ec18bb14e65bd8a8e7c482bf06735ca1)
This commit is contained in:
liyunfei 2024-08-20 19:33:11 +08:00 committed by openeuler-sync-bot
parent 0124e5aef1
commit 238aae5921

View File

@ -1,8 +1,9 @@
%global spirv_headers_version 1.3.261.1
%bcond_without bisheng_autotuner
Name: spirv-llvm-translator
Version: 17.0.0
Release: 1
Release: 2
Summary: LLVM to SPIRV Translator
License: NCSA
@ -50,6 +51,9 @@ mv SPIRV-Headers-sdk-%{spirv_headers_version} SPIRV-Headers
-DLLVM_BUILD_TOOLS=ON \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DLLVM_EXTERNAL_SPIRV_HEADERS_SOURCE_DIR=%{_builddir}/SPIRV-Headers \
%if %{with bisheng_autotuner}
-DLLVM_ENABLE_AUTOTUNER=ON \
%endif
-DCMAKE_INSTALL_RPATH:BOOL=";"
%ninja_build
#%cmake_build
@ -71,6 +75,9 @@ mv SPIRV-Headers-sdk-%{spirv_headers_version} SPIRV-Headers
%{_libdir}/pkgconfig/LLVMSPIRVLib.pc
%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
- Update to 17.0.0