From 724f6d6e3260adccf828683185511eed8eb1d99c Mon Sep 17 00:00:00 2001 From: liyunfei Date: Tue, 20 Aug 2024 20:08:40 +0800 Subject: [PATCH] Add BiSheng Autotuner support Signed-off-by: liyunfei --- libclc.spec | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/libclc.spec b/libclc.spec index 88c020a..21d850b 100644 --- a/libclc.spec +++ b/libclc.spec @@ -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 - 17.0.6-3 +- Add BiSheng Autotuner support. + * Thu Mar 14 2024 yinxiulin - 17.0.6-2 - Add ppc64le support -- Gitee