Add BiSheng Autotuner support

Signed-off-by: liyunfei <liyunfei33@huawei.com>
(cherry picked from commit 724f6d6e3260adccf828683185511eed8eb1d99c)
This commit is contained in:
liyunfei 2024-08-20 20:08:40 +08:00 committed by openeuler-sync-bot
parent 51263d104c
commit 49258afa2c

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