Compare commits
No commits in common. "979aea71a3b28324777fd2772cb19922c8549e2e" and "48f0d40c05f354b86d92dea92803b556284ad282" have entirely different histories.
979aea71a3
...
48f0d40c05
16
README.en.md
16
README.en.md
@ -3,6 +3,21 @@
|
||||
#### Description
|
||||
LLVM OpenMP Libraries
|
||||
|
||||
#### Software Architecture
|
||||
Software architecture description
|
||||
|
||||
#### Installation
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### Instructions
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### Contribution
|
||||
|
||||
1. Fork the repository
|
||||
@ -10,6 +25,7 @@ LLVM OpenMP Libraries
|
||||
3. Commit your code
|
||||
4. Create Pull Request
|
||||
|
||||
|
||||
#### Gitee Feature
|
||||
|
||||
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
|
||||
|
||||
17
README.md
17
README.md
@ -3,6 +3,22 @@
|
||||
#### 介绍
|
||||
LLVM OpenMP Libraries
|
||||
|
||||
#### 软件架构
|
||||
软件架构说明
|
||||
|
||||
|
||||
#### 安装教程
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### 使用说明
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### 参与贡献
|
||||
|
||||
1. Fork 本仓库
|
||||
@ -10,6 +26,7 @@ LLVM OpenMP Libraries
|
||||
3. 提交代码
|
||||
4. 新建 Pull Request
|
||||
|
||||
|
||||
#### 特技
|
||||
|
||||
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
|
||||
|
||||
BIN
openmp-12.0.1.src.tar.xz
Normal file
BIN
openmp-12.0.1.src.tar.xz
Normal file
Binary file not shown.
Binary file not shown.
85
openmp.spec
85
openmp.spec
@ -1,28 +1,18 @@
|
||||
%bcond_without sys_llvm
|
||||
%bcond_with sys_llvm
|
||||
%bcond_with check
|
||||
%bcond_without toolchain_clang
|
||||
%bcond_without bisheng_autotuner
|
||||
|
||||
%if %{with toolchain_clang}
|
||||
%global toolchain clang
|
||||
%endif
|
||||
|
||||
%global toolchain clang
|
||||
|
||||
%global maj_ver 17
|
||||
%global maj_ver 12
|
||||
%global min_ver 0
|
||||
%global patch_ver 6
|
||||
%global patch_ver 1
|
||||
%global openmp_version %{maj_ver}.%{min_ver}.%{patch_ver}
|
||||
%global openmp_srcdir openmp-%{openmp_version}.src
|
||||
|
||||
%if %{with sys_llvm}
|
||||
%global pkg_name libomp
|
||||
%global install_prefix %{_prefix}
|
||||
%global install_datadir %{_datadir}
|
||||
%else
|
||||
%global pkg_name libomp%{maj_ver}
|
||||
%global install_prefix %{_libdir}/llvm%{maj_ver}
|
||||
%global install_datadir %{install_prefix}/share
|
||||
%endif
|
||||
|
||||
%global install_includedir %{install_prefix}/include
|
||||
@ -38,11 +28,11 @@
|
||||
|
||||
Name: %{pkg_name}
|
||||
Version: %{openmp_version}
|
||||
Release: 5
|
||||
Release: 1
|
||||
Summary: OpenMP runtime for clang
|
||||
|
||||
License: Apache-2.0
|
||||
URL: https://openmp.llvm.org
|
||||
License: Apache License 2.0
|
||||
URL: http://openmp.llvm.org
|
||||
Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{openmp_version}/%{openmp_srcdir}.tar.xz
|
||||
|
||||
BuildRequires: gcc gcc-c++
|
||||
@ -60,11 +50,9 @@ BuildRequires: clang-tools-extra
|
||||
|
||||
%if %{with sys_llvm}
|
||||
BuildRequires: llvm-devel llvm-test
|
||||
BuildRequires: llvm-cmake-utils = %{version}
|
||||
%else
|
||||
BuildRequires: llvm%{maj_ver}-devel
|
||||
BuildRequires: llvm%{maj_ver}-test
|
||||
BuildRequires: llvm%{maj_ver}-cmake-utils = %{version}
|
||||
%endif
|
||||
|
||||
Requires: elfutils-libelf%{?isa}
|
||||
@ -84,6 +72,7 @@ Requires: clang%{maj_ver}-resource-filesystem%{?isa} = %{version}
|
||||
%description devel
|
||||
OpenMP header files.
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -n %{openmp_srcdir} -p2
|
||||
|
||||
@ -92,78 +81,38 @@ OpenMP header files.
|
||||
%cmake -GNinja \
|
||||
-DCMAKE_INSTALL_PREFIX=%{install_prefix} \
|
||||
-DLIBOMP_INSTALL_ALIASES=OFF \
|
||||
-DCMAKE_MODULE_PATH=%{install_datadir}/llvm/cmake/Modules \
|
||||
-DCMAKE_MODULE_PATH=%{install_libdir}/cmake/llvm \
|
||||
-DLLVM_DIR=%{install_libdir}/cmake/llvm \
|
||||
-DCMAKE_INSTALL_INCLUDEDIR=%{install_libdir}/clang/%{maj_ver}/include \
|
||||
-DCMAKE_INSTALL_INCLUDEDIR=%{install_libdir}/clang/%{openmp_version}/include \
|
||||
%if 0%{?__isa_bits} == 64
|
||||
-DOPENMP_LIBDIR_SUFFIX=64 \
|
||||
%else
|
||||
-DOPENMP_LIBDIR_SUFFIX= \
|
||||
%endif
|
||||
%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
|
||||
|
||||
%cmake_build
|
||||
%ninja_build
|
||||
|
||||
%install
|
||||
%cmake_install
|
||||
%ninja_install
|
||||
rm -rf %{buildroot}%{install_libdir}/libarcher_static.a
|
||||
|
||||
%check
|
||||
|
||||
%files
|
||||
%license LICENSE.TXT
|
||||
%{install_libdir}/libomp.so
|
||||
%{install_libdir}/libompd.so
|
||||
%ifnarch %{arm}
|
||||
%{install_libdir}/libarcher.so
|
||||
%endif
|
||||
%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}
|
||||
%endif
|
||||
%{install_libdir}/libomptarget.so.%{maj_ver}
|
||||
|
||||
%files devel
|
||||
%{install_libdir}/clang/%{maj_ver}/include/omp.h
|
||||
%{install_libdir}/cmake/openmp/FindOpenMPTarget.cmake
|
||||
%{install_includedir}/omp.h
|
||||
%ifnarch %{arm}
|
||||
%{install_libdir}/clang/%{maj_ver}/include/omp-tools.h
|
||||
%{install_libdir}/clang/%{maj_ver}/include/ompt.h
|
||||
%{install_libdir}/clang/%{maj_ver}/include/ompt-multiplex.h
|
||||
%{install_includedir}/omp-tools.h
|
||||
%{install_includedir}/ompt.h
|
||||
%{install_includedir}/ompt-multiplex.h
|
||||
%endif
|
||||
%ifnarch %{ix86} %{arm}
|
||||
%ifnarch riscv64 loongarch64
|
||||
%{install_libdir}/libomptarget.rtl.amdgpu.so
|
||||
%{install_libdir}/libomptarget.rtl.cuda.so
|
||||
%{install_libdir}/libomptarget.rtl.%{libomp_arch}.so
|
||||
%endif
|
||||
%{install_libdir}/libomptarget.devicertl.a
|
||||
%{install_libdir}/libomptarget-amdgpu-*.bc
|
||||
%{install_libdir}/libomptarget-nvptx-*.bc
|
||||
%endif
|
||||
%{install_libdir}/libomptarget.so
|
||||
|
||||
%changelog
|
||||
* Sun Nov 10 2024 Funda Wang <fundawang@yeah.net> - 17.0.6-5
|
||||
- adopt to new cmake macro
|
||||
|
||||
* Tue Aug 20 2024 liyunfei <liyunfei33@huawei.com> - 17.0.6-4
|
||||
- Add BiSheng Autotuner support.
|
||||
|
||||
* Fri Jul 5 2024 liyunfei <liyunfei33@huawei.com> - 17.0.6-3
|
||||
- Add toolchain_clang build support
|
||||
|
||||
* Wed Jun 05 2024 Wenlong Zhang <zhangwenlong@loongson.cn> - 17.0.6-2
|
||||
- fix build error for loongarch64
|
||||
|
||||
* Mon Dec 4 2023 zhoujing <zhoujing106@huawei.com> - 17.0.6-1
|
||||
- Update to 17.0.6
|
||||
|
||||
* Sat Aug 26 2023 cf-zhao <zhaochuanfeng@huawei.com> - 12.0.1-1
|
||||
- Initial version to 12.0.1
|
||||
|
||||
@ -1,4 +0,0 @@
|
||||
version_control: github
|
||||
src_repo: llvm/llvm-project
|
||||
tag_prefix: ^llvmorg-
|
||||
separator: .
|
||||
Loading…
x
Reference in New Issue
Block a user