!9 Update to 17.0.6
From: @zj94 Reviewed-by: @liyunfei33, @cf-zhao Signed-off-by: @cf-zhao
This commit is contained in:
commit
0e38c565cb
16
README.en.md
16
README.en.md
@ -3,21 +3,6 @@
|
|||||||
#### Description
|
#### Description
|
||||||
LLVM OpenMP Libraries
|
LLVM OpenMP Libraries
|
||||||
|
|
||||||
#### Software Architecture
|
|
||||||
Software architecture description
|
|
||||||
|
|
||||||
#### Installation
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### Instructions
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### Contribution
|
#### Contribution
|
||||||
|
|
||||||
1. Fork the repository
|
1. Fork the repository
|
||||||
@ -25,7 +10,6 @@ Software architecture description
|
|||||||
3. Commit your code
|
3. Commit your code
|
||||||
4. Create Pull Request
|
4. Create Pull Request
|
||||||
|
|
||||||
|
|
||||||
#### Gitee Feature
|
#### Gitee Feature
|
||||||
|
|
||||||
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
|
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,22 +3,6 @@
|
|||||||
#### 介绍
|
#### 介绍
|
||||||
LLVM OpenMP Libraries
|
LLVM OpenMP Libraries
|
||||||
|
|
||||||
#### 软件架构
|
|
||||||
软件架构说明
|
|
||||||
|
|
||||||
|
|
||||||
#### 安装教程
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### 使用说明
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### 参与贡献
|
#### 参与贡献
|
||||||
|
|
||||||
1. Fork 本仓库
|
1. Fork 本仓库
|
||||||
@ -26,7 +10,6 @@ LLVM OpenMP Libraries
|
|||||||
3. 提交代码
|
3. 提交代码
|
||||||
4. 新建 Pull Request
|
4. 新建 Pull Request
|
||||||
|
|
||||||
|
|
||||||
#### 特技
|
#### 特技
|
||||||
|
|
||||||
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
|
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
|
||||||
|
|||||||
Binary file not shown.
BIN
openmp-17.0.6.src.tar.xz
Normal file
BIN
openmp-17.0.6.src.tar.xz
Normal file
Binary file not shown.
50
openmp.spec
50
openmp.spec
@ -1,18 +1,22 @@
|
|||||||
%bcond_with sys_llvm
|
%bcond_without sys_llvm
|
||||||
%bcond_with check
|
%bcond_with check
|
||||||
|
|
||||||
%global maj_ver 12
|
%global toolchain clang
|
||||||
|
|
||||||
|
%global maj_ver 17
|
||||||
%global min_ver 0
|
%global min_ver 0
|
||||||
%global patch_ver 1
|
%global patch_ver 6
|
||||||
%global openmp_version %{maj_ver}.%{min_ver}.%{patch_ver}
|
%global openmp_version %{maj_ver}.%{min_ver}.%{patch_ver}
|
||||||
%global openmp_srcdir openmp-%{openmp_version}.src
|
%global openmp_srcdir openmp-%{openmp_version}.src
|
||||||
|
|
||||||
%if %{with sys_llvm}
|
%if %{with sys_llvm}
|
||||||
%global pkg_name libomp
|
%global pkg_name libomp
|
||||||
%global install_prefix %{_prefix}
|
%global install_prefix %{_prefix}
|
||||||
|
%global install_datadir %{_datadir}
|
||||||
%else
|
%else
|
||||||
%global pkg_name libomp%{maj_ver}
|
%global pkg_name libomp%{maj_ver}
|
||||||
%global install_prefix %{_libdir}/llvm%{maj_ver}
|
%global install_prefix %{_libdir}/llvm%{maj_ver}
|
||||||
|
%global install_datadir %{install_prefix}/share
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%global install_includedir %{install_prefix}/include
|
%global install_includedir %{install_prefix}/include
|
||||||
@ -50,9 +54,11 @@ BuildRequires: clang-tools-extra
|
|||||||
|
|
||||||
%if %{with sys_llvm}
|
%if %{with sys_llvm}
|
||||||
BuildRequires: llvm-devel llvm-test
|
BuildRequires: llvm-devel llvm-test
|
||||||
|
BuildRequires: llvm-cmake-utils = %{version}
|
||||||
%else
|
%else
|
||||||
BuildRequires: llvm%{maj_ver}-devel
|
BuildRequires: llvm%{maj_ver}-devel
|
||||||
BuildRequires: llvm%{maj_ver}-test
|
BuildRequires: llvm%{maj_ver}-test
|
||||||
|
BuildRequires: llvm%{maj_ver}-cmake-utils = %{version}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Requires: elfutils-libelf%{?isa}
|
Requires: elfutils-libelf%{?isa}
|
||||||
@ -71,8 +77,7 @@ Requires: clang%{maj_ver}-resource-filesystem%{?isa} = %{version}
|
|||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
OpenMP header files.
|
OpenMP header files.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{openmp_srcdir} -p2
|
%autosetup -n %{openmp_srcdir} -p2
|
||||||
|
|
||||||
@ -81,9 +86,9 @@ OpenMP header files.
|
|||||||
%cmake -GNinja \
|
%cmake -GNinja \
|
||||||
-DCMAKE_INSTALL_PREFIX=%{install_prefix} \
|
-DCMAKE_INSTALL_PREFIX=%{install_prefix} \
|
||||||
-DLIBOMP_INSTALL_ALIASES=OFF \
|
-DLIBOMP_INSTALL_ALIASES=OFF \
|
||||||
-DCMAKE_MODULE_PATH=%{install_libdir}/cmake/llvm \
|
-DCMAKE_MODULE_PATH=%{install_datadir}/llvm/cmake/Modules \
|
||||||
-DLLVM_DIR=%{install_libdir}/cmake/llvm \
|
-DLLVM_DIR=%{install_libdir}/cmake/llvm \
|
||||||
-DCMAKE_INSTALL_INCLUDEDIR=%{install_libdir}/clang/%{openmp_version}/include \
|
-DCMAKE_INSTALL_INCLUDEDIR=%{install_libdir}/clang/%{maj_ver}/include \
|
||||||
%if 0%{?__isa_bits} == 64
|
%if 0%{?__isa_bits} == 64
|
||||||
-DOPENMP_LIBDIR_SUFFIX=64 \
|
-DOPENMP_LIBDIR_SUFFIX=64 \
|
||||||
%else
|
%else
|
||||||
@ -100,19 +105,42 @@ rm -rf %{buildroot}%{install_libdir}/libarcher_static.a
|
|||||||
%check
|
%check
|
||||||
|
|
||||||
%files
|
%files
|
||||||
|
%license LICENSE.TXT
|
||||||
%{install_libdir}/libomp.so
|
%{install_libdir}/libomp.so
|
||||||
|
%{install_libdir}/libompd.so
|
||||||
%ifnarch %{arm}
|
%ifnarch %{arm}
|
||||||
%{install_libdir}/libarcher.so
|
%{install_libdir}/libarcher.so
|
||||||
%endif
|
%endif
|
||||||
|
%ifnarch %{ix86} %{arm} riscv64
|
||||||
|
%{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
|
%files devel
|
||||||
%{install_includedir}/omp.h
|
%{install_libdir}/clang/%{maj_ver}/include/omp.h
|
||||||
|
%{install_libdir}/cmake/openmp/FindOpenMPTarget.cmake
|
||||||
%ifnarch %{arm}
|
%ifnarch %{arm}
|
||||||
%{install_includedir}/omp-tools.h
|
%{install_libdir}/clang/%{maj_ver}/include/omp-tools.h
|
||||||
%{install_includedir}/ompt.h
|
%{install_libdir}/clang/%{maj_ver}/include/ompt.h
|
||||||
%{install_includedir}/ompt-multiplex.h
|
%{install_libdir}/clang/%{maj_ver}/include/ompt-multiplex.h
|
||||||
%endif
|
%endif
|
||||||
|
%ifnarch %{ix86} %{arm}
|
||||||
|
%ifnarch riscv64
|
||||||
|
%{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
|
%changelog
|
||||||
|
* 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
|
* Sat Aug 26 2023 cf-zhao <zhaochuanfeng@huawei.com> - 12.0.1-1
|
||||||
- Initial version to 12.0.1
|
- Initial version to 12.0.1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user