!25 [sync] PR-23: 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-04 09:16:09 +00:00 committed by Gitee
commit f3658ed070
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,5 +1,6 @@
%bcond_without check
%bcond_without sys_llvm
%bcond_without bisheng_autotuner
%global maj_ver 17
%global min_ver 0
@ -25,7 +26,7 @@
Name: %{pkg_name}
Version: %{clc_version}
Release: 2
Release: 3
Summary: An implementation of the library requirements of the OpenCL C
License: Apache-2.0 WITH LLVM-exception OR BSD OR MIT
URL: https://libclc.llvm.org
@ -85,7 +86,11 @@ developing applications that use libclc.
%build
export CFLAGS="%{build_cflags} -D__extern_always_inline=inline"
%set_build_flags
%cmake -DCMAKE_INSTALL_DATADIR:PATH=%{install_libdir}
%cmake \
%if %{with bisheng_autotuner}
-DLLVM_ENABLE_AUTOTUNER=ON \
%endif
-DCMAKE_INSTALL_DATADIR:PATH=%{install_libdir}
%make_build
@ -113,6 +118,9 @@ make test || true
%{install_includedir}/clc
%changelog
* Tue Aug 20 2024 liyunfei <liyunfei33@huawei.com> - 17.0.6-3
- Add BiSheng Autotuner support.
* Thu Mar 14 2024 yinxiulin <xiulin.yin@shingroup.cn> - 17.0.6-2
- Add ppc64le support