From a536092b15bf6736e3ee7ad9cf302ba6ca264928 Mon Sep 17 00:00:00 2001 From: liyunfei Date: Fri, 5 Jul 2024 17:29:56 +0800 Subject: [PATCH 1/2] Add toolchain_clang build support Signed-off-by: liyunfei --- openmp.spec | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/openmp.spec b/openmp.spec index c48e70d..e866731 100644 --- a/openmp.spec +++ b/openmp.spec @@ -1,5 +1,10 @@ %bcond_without sys_llvm %bcond_with check +%bcond_without toolchain_clang + +%if %{with toolchain_clang} +%global toolchain clang +%endif %global toolchain clang @@ -32,7 +37,7 @@ Name: %{pkg_name} Version: %{openmp_version} -Release: 1 +Release: 2 Summary: OpenMP runtime for clang License: Apache License 2.0 @@ -93,6 +98,10 @@ OpenMP header files. -DOPENMP_LIBDIR_SUFFIX=64 \ %else -DOPENMP_LIBDIR_SUFFIX= \ +%endif +%if "%{toolchain}" == "clang" + -DCMAKE_C_COMPILER=clang \ + -DCMAKE_CXX_COMPILER=clang++ \ %endif -DCMAKE_SKIP_RPATH:BOOL=ON @@ -139,6 +148,9 @@ rm -rf %{buildroot}%{install_libdir}/libarcher_static.a %{install_libdir}/libomptarget.so %changelog +* Fri Jul 5 2024 liyunfei - 17.0.6-2 +- Add toolchain_clang build support + * Mon Dec 4 2023 zhoujing - 17.0.6-1 - Update to 17.0.6 From 342ab565d0219f44257e0f9b918f039a3e575090 Mon Sep 17 00:00:00 2001 From: liyunfei Date: Tue, 20 Aug 2024 20:29:23 +0800 Subject: [PATCH 2/2] Add BiSheng Autotuner support Signed-off-by: liyunfei --- openmp.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/openmp.spec b/openmp.spec index e866731..6835123 100644 --- a/openmp.spec +++ b/openmp.spec @@ -1,6 +1,7 @@ %bcond_without sys_llvm %bcond_with check %bcond_without toolchain_clang +%bcond_without bisheng_autotuner %if %{with toolchain_clang} %global toolchain clang @@ -37,7 +38,7 @@ Name: %{pkg_name} Version: %{openmp_version} -Release: 2 +Release: 3 Summary: OpenMP runtime for clang License: Apache License 2.0 @@ -102,6 +103,9 @@ OpenMP header files. %if "%{toolchain}" == "clang" -DCMAKE_C_COMPILER=clang \ -DCMAKE_CXX_COMPILER=clang++ \ +%endif +%if %{with bisheng_autotuner} + -DLLVM_ENABLE_AUTOTUNER=ON \ %endif -DCMAKE_SKIP_RPATH:BOOL=ON @@ -148,6 +152,9 @@ rm -rf %{buildroot}%{install_libdir}/libarcher_static.a %{install_libdir}/libomptarget.so %changelog +* Tue Aug 20 2024 liyunfei - 17.0.6-3 +- Add BiSheng Autotuner support. + * Fri Jul 5 2024 liyunfei - 17.0.6-2 - Add toolchain_clang build support