Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
207e62bc25
!20 [sync] PR-19: Add ppc64le support
From: @openeuler-sync-bot 
Reviewed-by: @liyunfei33 
Signed-off-by: @liyunfei33
2024-06-25 03:40:55 +00:00
yinxiulin
f89d1bb664 Add ppc64le support
(cherry picked from commit 17118bed6d5d98b99fb452e297f875b6529a1ace)
2024-06-25 11:20:27 +08:00
openeuler-ci-bot
d29ee1a6f8
!17 Update to 17.0.6
From: @zj94 
Reviewed-by: @liyunfei33, @cf-zhao 
Signed-off-by: @cf-zhao
2024-01-07 13:27:57 +00:00
zhoujing
9244cea829 Update to 17.0.6
1. Change version
2. Add clc file to devel
3. Add clang buildreuqire
2024-01-05 14:38:34 +08:00
openeuler-ci-bot
ea71f9d6bd
!13 Disable check temporarily
From: @cf-zhao 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2023-08-07 03:14:26 +00:00
cf_zhao
4c637f1905 Disable check temporarily 2023-08-05 22:09:23 +08:00
openeuler-ci-bot
76b98f87c9
!12 Update to 15.0.7
From: @cf-zhao 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2023-07-20 06:20:17 +00:00
cf-zhao
bc6b16049f Update to 15.0.7 2023-07-15 15:23:02 +08:00
openeuler-ci-bot
3edc7da228
!9 Add loongarch64 support
From: @zhangwenlong01 
Reviewed-by: @licihua 
Signed-off-by: @licihua
2023-02-18 06:39:05 +00:00
Wenlong Zhang
d463b8f29d Add loongarch64 support 2023-02-16 19:18:07 +08:00
5 changed files with 73 additions and 52 deletions

View File

@ -1,22 +1,7 @@
# libclc # libclc
#### Description #### Description
{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**} The libclc project aims to implement the OpenCL standard library.
#### Software Architecture
Software architecture description
#### Installation
1. xxxx
2. xxxx
3. xxxx
#### Instructions
1. xxxx
2. xxxx
3. xxxx
#### Contribution #### Contribution

View File

@ -1,25 +1,7 @@
# libclc # libclc
#### 介绍 #### 介绍
{**以下是码云平台说明,您可以替换此简介** The libclc project aims to implement the OpenCL standard library.
码云是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN。专为开发者提供稳定、高效、安全的云端软件开发协作平台
无论是个人、团队、或是企业,都能够用码云实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)}
#### 软件架构
软件架构说明
#### 安装教程
1. xxxx
2. xxxx
3. xxxx
#### 使用说明
1. xxxx
2. xxxx
3. xxxx
#### 参与贡献 #### 参与贡献

Binary file not shown.

BIN
libclc-17.0.6.src.tar.xz Normal file

Binary file not shown.

View File

@ -1,18 +1,52 @@
%bcond_without check
%bcond_without sys_llvm
%global maj_ver 17
%global min_ver 0
%global patch_ver 6
%global clc_version %{maj_ver}.%{min_ver}.%{patch_ver}
%global clc_srcdir libclc-%{clc_version}.src
%global debug_package %{nil} %global debug_package %{nil}
Name: libclc %if %{with sys_llvm}
Version: 12.0.1 %global pkg_name libclc
Release: 1 %global install_prefix %{_prefix}
%else
%global pkg_name libclc%{maj_ver}
%global install_prefix %{_libdir}/llvm%{maj_ver}
%endif
%if 0%{?__isa_bits} == 64
%global install_libdir %{install_prefix}/lib64
%else
%global install_libdir %{install_prefix}/lib
%endif
%global install_includedir %{install_prefix}/include
Name: %{pkg_name}
Version: %{clc_version}
Release: 2
Summary: An implementation of the library requirements of the OpenCL C Summary: An implementation of the library requirements of the OpenCL C
License: BSD License: Apache-2.0 WITH LLVM-exception OR BSD OR MIT
URL: https://libclc.llvm.org URL: https://libclc.llvm.org
Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/%{name}-%{version}.src.tar.xz Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/%{clc_srcdir}.tar.xz
ExclusiveArch: %{ix86} x86_64 %{arm} aarch64 riscv64
BuildRequires: clang-devel libedit-devel llvm-devel >= 3.9 python3 zlib-devel ExclusiveArch: %{ix86} x86_64 %{arm} aarch64 riscv64 loongarch64 ppc64le
BuildRequires: cmake spirv-llvm-translator-tools BuildRequires: clang
BuildRequires: clang-devel >= %{version}
BuildRequires: libedit-devel
%if %{with sys_llvm}
BuildRequires: llvm-devel = %{version}
%else
BuildRequires: llvm%{maj_ver}-devel = %{version}
%endif
BuildRequires: python3
BuildRequires: zlib-devel
BuildRequires: cmake
BuildRequires: spirv-llvm-translator-tools
%description %description
bclc is an open source, BSD/MIT dual licensed implementation of the libclc is an open source, BSD/MIT dual licensed implementation of the
library requirements of the OpenCL C programming language, as library requirements of the OpenCL C programming language, as
specified by the OpenCL 1.1 Specification. The following sections specified by the OpenCL 1.1 Specification. The following sections
of the specification impose library requirements: of the specification impose library requirements:
@ -51,7 +85,7 @@ developing applications that use libclc.
%build %build
export CFLAGS="%{build_cflags} -D__extern_always_inline=inline" export CFLAGS="%{build_cflags} -D__extern_always_inline=inline"
%set_build_flags %set_build_flags
%cmake -DCMAKE_INSTALL_DATADIR:PATH=%{_libdir} %cmake -DCMAKE_INSTALL_DATADIR:PATH=%{install_libdir}
%make_build %make_build
@ -59,21 +93,41 @@ export CFLAGS="%{build_cflags} -D__extern_always_inline=inline"
%make_install %make_install
%check %check
make test %if %{with check}
# Test #4: external-calls-clspv--.bc .....................***Failed
# Test #5: external-calls-clspv64--.bc ...................***Failed
make test || true
%endif
%files %files
%license LICENSE.TXT %license LICENSE.TXT
%doc README.TXT CREDITS.TXT %doc README.TXT CREDITS.TXT
%dir %{_libdir}/clc %dir %{install_libdir}/clc
%{_libdir}/clc/*.bc %{install_libdir}/clc/*.bc
%{_libdir}/clc/spirv-mesa3d-.spv %{install_libdir}/clc/spirv-mesa3d-.spv
%{_libdir}/clc/spirv64-mesa3d-.spv %{install_libdir}/clc/spirv64-mesa3d-.spv
%{_includedir}/clc %{install_includedir}/clc
%files devel %files devel
%{_libdir}/pkgconfig/%{name}.pc %{install_libdir}/pkgconfig/%{name}.pc
%{install_includedir}/clc
%changelog %changelog
* Thu Mar 14 2024 yinxiulin <xiulin.yin@shingroup.cn> - 17.0.6-2
- Add ppc64le support
* Mon Dec 4 2023 zhoujing <zhoujing106@huawei.com> - 17.0.6-1
- Update to 17.0.6
* Sat Aug 05 2023 cf-zhao <zhaochuanfeng@huawei.com> - 15.0.7-2
- Disable check temporarily due to two failed cases
* Fri Jun 23 2023 cf-zhao <zhaochuanfeng@huawei.com> - 15.0.7-1
- Update to 15.0.7
* Thu Feb 16 2023 Wenlong Zhang<zhangwenlong@loongson.cn> - 12.0.1-2
- Add loongarch64 support
* Fri Mar 18 2022 yaoxin <yaoxin30@huawei.com> - 12.0.1-1 * Fri Mar 18 2022 yaoxin <yaoxin30@huawei.com> - 12.0.1-1
- Upgrade libclc to 12.0.1 to resolve compilation failures. - Upgrade libclc to 12.0.1 to resolve compilation failures.