diff --git a/openmp.spec b/openmp.spec index e8667318748a4cf31038b94948f4819f7c091301..10a9949426251431cd0fd2b53ed2a8146ec87298 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: 4 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 @@ -120,7 +124,7 @@ rm -rf %{buildroot}%{install_libdir}/libarcher_static.a %ifnarch %{arm} %{install_libdir}/libarcher.so %endif -%ifnarch %{ix86} %{arm} riscv64 +%ifnarch %{ix86} %{arm} riscv64 loongarch64 %{install_libdir}/libomptarget.rtl.amdgpu.so.%{maj_ver} %{install_libdir}/libomptarget.rtl.cuda.so.%{maj_ver} %{install_libdir}/libomptarget.rtl.%{libomp_arch}.so.%{maj_ver} @@ -136,7 +140,7 @@ rm -rf %{buildroot}%{install_libdir}/libarcher_static.a %{install_libdir}/clang/%{maj_ver}/include/ompt-multiplex.h %endif %ifnarch %{ix86} %{arm} -%ifnarch riscv64 +%ifnarch riscv64 loongarch64 %{install_libdir}/libomptarget.rtl.amdgpu.so %{install_libdir}/libomptarget.rtl.cuda.so %{install_libdir}/libomptarget.rtl.%{libomp_arch}.so @@ -148,9 +152,15 @@ rm -rf %{buildroot}%{install_libdir}/libarcher_static.a %{install_libdir}/libomptarget.so %changelog -* Fri Jul 5 2024 liyunfei - 17.0.6-2 +* Tue Aug 20 2024 liyunfei - 17.0.6-4 +- Add BiSheng Autotuner support. + +* Fri Jul 5 2024 liyunfei - 17.0.6-3 - Add toolchain_clang build support +* Wed Jun 05 2024 Wenlong Zhang - 17.0.6-2 +- fix build error for loongarch64 + * Mon Dec 4 2023 zhoujing - 17.0.6-1 - Update to 17.0.6