Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
86128de84c
!12 [sync] PR-10: Fix for cmake macros
From: @openeuler-sync-bot 
Reviewed-by: @liyunfei33 
Signed-off-by: @liyunfei33
2024-11-12 11:50:19 +00:00
liyunfei
72d73ff477 Fix for cmake macros
Signed-off-by: liyunfei <liyunfei33@huawei.com>
(cherry picked from commit 1c37b2f3620ea8015c06d802232aa9711164bfce)
2024-11-12 19:28:39 +08:00
openeuler-ci-bot
384297be91
!8 [sync] PR-6: Add BiSheng Autotuner support
From: @openeuler-sync-bot 
Reviewed-by: @liyunfei33 
Signed-off-by: @liyunfei33
2024-09-05 02:06:27 +00:00
liyunfei
238aae5921 Add BiSheng Autotuner support
Signed-off-by: liyunfei <liyunfei33@huawei.com>
(cherry picked from commit c56927a0ec18bb14e65bd8a8e7c482bf06735ca1)
2024-09-04 17:22:12 +08:00
openeuler-ci-bot
0124e5aef1
!5 Update to 17.0.6
From: @zj94 
Reviewed-by: @cf-zhao 
Signed-off-by: @cf-zhao
2024-01-04 10:39:51 +00:00
zhoujing
4cb0df9534 Update to 17.0.0 2023-12-11 09:37:26 +08:00
openeuler-ci-bot
6fbbc3e43f
!4 Update to 15.0.0
From: @cf-zhao 
Reviewed-by: @eastb233 
Signed-off-by: @eastb233
2023-07-20 02:54:23 +00:00
cf_zhao
0c7a0630f3 Update to 15.0.0 2023-07-20 10:15:02 +08:00
openeuler-ci-bot
e1aaab26c4
!1 初始化spirv-llvm-translator
From: @chen-jan 
Reviewed-by: @peilin-guo 
Signed-off-by: @peilin-guo
2022-03-18 07:14:28 +00:00
chen-jan
4495430f92 Package init 2022-01-26 01:54:00 +00:00
6 changed files with 93 additions and 31 deletions

View File

@ -3,21 +3,6 @@
#### Description
This is a library to be used by Mesa for OpenCL support. It translate LLVM IR to Khronos SPIR-V.
#### Software Architecture
Software architecture description
#### Installation
1. xxxx
2. xxxx
3. xxxx
#### Instructions
1. xxxx
2. xxxx
3. xxxx
#### Contribution
1. Fork the repository

View File

@ -3,22 +3,6 @@
#### 介绍
This is a library to be used by Mesa for OpenCL support. It translate LLVM IR to Khronos SPIR-V.
#### 软件架构
软件架构说明
#### 安装教程
1. xxxx
2. xxxx
3. xxxx
#### 使用说明
1. xxxx
2. xxxx
3. xxxx
#### 参与贡献
1. Fork 本仓库

Binary file not shown.

BIN
sdk-1.3.261.1.tar.gz Normal file

Binary file not shown.

View File

@ -0,0 +1,89 @@
%global spirv_headers_version 1.3.261.1
%bcond_without bisheng_autotuner
Name: spirv-llvm-translator
Version: 17.0.0
Release: 3
Summary: LLVM to SPIRV Translator
License: NCSA
URL: https://github.com/KhronosGroup/SPIRV-LLVM-Translator
Source0: https://github.com/KhronosGroup/SPIRV-LLVM-Translator/archive/refs/tags/SPIRV-LLVM-Translator-%{version}.tar.gz
Source1: https://github.com/KhronosGroup/SPIRV-Headers/archive/refs/tags/sdk-%{spirv_headers_version}.tar.gz
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: cmake
BuildRequires: ninja-build
BuildRequires: llvm-devel
BuildRequires: llvm-static
BuildRequires: llvm-test
%description
Khronos LLVM to SPIRV Translator. This is a library
to be used by Mesa for OpenCL support. It translate
LLVM IR to Khronos SPIR-V. It also includes a
standalone tool used for building libclc.
%package devel
Summary: Development files for LLVM to SPIRV Translator
Requires: %{name} = %{version}-%{release}
%description devel
This package contains libraries and header files for
developing against %{name}
%package tools
Summary: Standalone llvm to spirv translator tool
Requires: %{name} = %{version}-%{release}
%description tools
This package contains the standalone llvm to spirv tool.
%prep
%setup -T -q -b 1 -n SPIRV-Headers-sdk-%{spirv_headers_version}
cd ..
mv SPIRV-Headers-sdk-%{spirv_headers_version} SPIRV-Headers
%autosetup -n SPIRV-LLVM-Translator-%{version}
%build
%cmake -GNinja \
-DLLVM_BUILD_TOOLS=ON \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DLLVM_EXTERNAL_SPIRV_HEADERS_SOURCE_DIR=%{_builddir}/SPIRV-Headers \
%if %{with bisheng_autotuner}
-DLLVM_ENABLE_AUTOTUNER=ON \
%endif
-DCMAKE_INSTALL_RPATH:BOOL=";"
%ninja_build
%install
%ninja_install
%files
%doc README.md
%{_libdir}/libLLVMSPIRVLib.so*
%files tools
%{_bindir}/llvm-spirv
%files devel
%{_includedir}/LLVMSPIRVLib/*
%{_libdir}/libLLVMSPIRVLib.so
%{_libdir}/pkgconfig/LLVMSPIRVLib.pc
%changelog
* Tue Nov 12 2024 liyunfei <liyunfei33@huawei.com> - 17.0.0-3
- Fix for cmake macros.
* Tue Aug 20 2024 liyunfei <liyunfei33@huawei.com> - 17.0.0-2
- Add BiSheng Autotuner support.
* Tue Dec 5 2023 zhoujing <zhoujing106@huawei.com> - 17.0.0-1
- Update to 17.0.0
* Thu Jun 8 2023 cf-zhao <zhaochuanfeng@huawei.com> - 15.0.0-1
- Update to 15.0.0
* Wed Jan 26 2022 chenchen <chen_aka_jan@163.com> - 12.0.0-1
- Package init

View File

@ -0,0 +1,4 @@
version_control: github
src_repo: KhronosGroup/SPIRV-LLVM-Translator
tag_prefix: ^v
seperator: .