!8 [sync] PR-6: Add BiSheng Autotuner support

From: @openeuler-sync-bot 
Reviewed-by: @liyunfei33 
Signed-off-by: @liyunfei33
This commit is contained in:
openeuler-ci-bot 2024-09-05 02:06:27 +00:00 committed by Gitee
commit 384297be91
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

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