Change the install folder
This commit is contained in:
parent
7f439e89b0
commit
9ffdde12ad
18
README.en.md
18
README.en.md
@ -2,21 +2,9 @@
|
||||
|
||||
#### Description
|
||||
The MLIR project is a novel approach to building reusable and extensible compiler infrastructure.
|
||||
|
||||
#### Software Architecture
|
||||
Software architecture description
|
||||
|
||||
#### Installation
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### Instructions
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
MLIR aims to address software fragmentation, improve compilation for heterogeneous hardware,
|
||||
significantly reduce the cost of building domain specific compilers, and aid in connecting
|
||||
existing compilers together.
|
||||
|
||||
#### Contribution
|
||||
|
||||
|
||||
19
README.md
19
README.md
@ -2,22 +2,9 @@
|
||||
|
||||
#### 介绍
|
||||
The MLIR project is a novel approach to building reusable and extensible compiler infrastructure.
|
||||
|
||||
#### 软件架构
|
||||
软件架构说明
|
||||
|
||||
|
||||
#### 安装教程
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### 使用说明
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
MLIR aims to address software fragmentation, improve compilation for heterogeneous hardware,
|
||||
significantly reduce the cost of building domain specific compilers, and aid in connecting
|
||||
existing compilers together.
|
||||
|
||||
#### 参与贡献
|
||||
|
||||
|
||||
@ -1,6 +1,22 @@
|
||||
Name: llvm-mlir
|
||||
Version: 12.0.1
|
||||
Release: 0
|
||||
%global maj_ver 12
|
||||
%global min_ver 0
|
||||
%global patch_ver 1
|
||||
%global mlir_version %{maj_ver}.%{min_ver}.%{patch_ver}
|
||||
|
||||
%global pkg_name llvm-mlir%{maj_ver}
|
||||
%global install_prefix %{_libdir}/llvm%{maj_ver}
|
||||
|
||||
%global install_bindir %{install_prefix}/bin
|
||||
%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: %{mlir_version}
|
||||
Release: 1
|
||||
Summary: The MLIR project is a novel approach to building reusable and extensible compiler infrastructure.
|
||||
License: Apache 2.0
|
||||
URL: https://mlir.llvm.org/
|
||||
@ -8,10 +24,15 @@ Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{versio
|
||||
Patch0: 0001-PATCH-mlir-Support-building-MLIR-standalone.patch
|
||||
Patch1: 0002-PATCH-mlir-Fix-building-unittests-in-in-tree-build.patch
|
||||
|
||||
BuildRequires: gcc gcc-c++ cmake ninja-build zlib-devel python3-lit llvm-devel
|
||||
BuildRequires: gcc gcc-c++ cmake ninja-build zlib-devel python3-lit
|
||||
BuildRequires: llvm%{maj_ver}-devel = %{version}
|
||||
BuildRequires: llvm%{maj_ver}-test = %{version}
|
||||
|
||||
%description
|
||||
The MLIR project is a novel approach to building reusable and extensible compiler infrastructure. MLIR aims to address software fragmentation, improve compilation for heterogeneous hardware, significantly reduce the cost of building domain specific compilers, and aid in connecting existing compilers together.
|
||||
The MLIR project is a novel approach to building reusable and extensible compiler infrastructure.
|
||||
MLIR aims to address software fragmentation, improve compilation for heterogeneous hardware,
|
||||
significantly reduce the cost of building domain specific compilers, and aid in connecting
|
||||
existing compilers together.
|
||||
|
||||
%package static
|
||||
Summary: MLIR static files
|
||||
@ -37,8 +58,9 @@ find ../* -maxdepth 0 ! -name "mlir" -exec rm -rf {} +
|
||||
%cmake -G Ninja \
|
||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||
-DCMAKE_SKIP_RPATH=ON \
|
||||
-DCMAKE_INSTALL_PREFIX=%{install_prefix} \
|
||||
-DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
|
||||
-DCMAKE_PREFIX_PATH=%{_libdir}/cmake/llvm/ \
|
||||
-DCMAKE_PREFIX_PATH=%{install_libdir}/cmake/llvm/ \
|
||||
-DLLVM_BUILD_UTILS:BOOL=ON \
|
||||
-DMLIR_INCLUDE_DOCS:BOOL=ON \
|
||||
-DMLIR_INCLUDE_TESTS:BOOL=OFF \
|
||||
@ -63,26 +85,29 @@ find ../* -maxdepth 0 ! -name "mlir" -exec rm -rf {} +
|
||||
|
||||
%files
|
||||
%license LICENSE.TXT
|
||||
%{_libdir}/libMLIR*.so.*
|
||||
%{_libdir}/libmlir_runner_utils.so.*
|
||||
%{_libdir}/libmlir_c_runner_utils.so.*
|
||||
%{_libdir}/libmlir_async_runtime.so.*
|
||||
%{install_libdir}/libMLIR*.so.*
|
||||
%{install_libdir}/libmlir_runner_utils.so.*
|
||||
%{install_libdir}/libmlir_c_runner_utils.so.*
|
||||
%{install_libdir}/libmlir_async_runtime.so.*
|
||||
|
||||
%files static
|
||||
%{_libdir}/libMLIR*.a
|
||||
%{_libdir}/libmlir_c_runner_utils_static.a
|
||||
%{install_libdir}/libMLIR*.a
|
||||
%{install_libdir}/libmlir_c_runner_utils_static.a
|
||||
|
||||
%files devel
|
||||
%{_bindir}/mlir-tblgen
|
||||
%{_libdir}/libMLIR*.so
|
||||
%{_libdir}/libmlir_runner_utils.so
|
||||
%{_libdir}/libmlir_c_runner_utils.so
|
||||
%{_libdir}//libmlir_async_runtime.so
|
||||
%{_includedir}/mlir
|
||||
%{_includedir}/mlir-c
|
||||
%{_libdir}/cmake/mlir
|
||||
%{install_bindir}/mlir-tblgen
|
||||
%{install_libdir}/libMLIR*.so
|
||||
%{install_libdir}/libmlir_runner_utils.so
|
||||
%{install_libdir}/libmlir_c_runner_utils.so
|
||||
%{install_libdir}//libmlir_async_runtime.so
|
||||
%{install_includedir}/mlir
|
||||
%{install_includedir}/mlir-c
|
||||
%{install_libdir}/cmake/mlir
|
||||
|
||||
%changelog
|
||||
* Fri Jul 7 2023 cf-zhao <zhaochuanfeng@huawei.com> - 12.0.1-1
|
||||
- Change the install folder
|
||||
|
||||
* Wed Nov 16 2022 liyancheng <412998149@qq.com> - 12.0.1-0
|
||||
- Type:Init
|
||||
- ID:NA
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user