oneDNN/onednn.spec

102 lines
2.4 KiB
RPMSpec
Raw Normal View History

%global __cmake_in_source_build 1
2020-12-13 21:15:39 +08:00
Name: onednn
Version: 2.6
Release: 1
2020-12-13 21:15:39 +08:00
Summary: Deep Neural Network Library
License: ASL 2.0 and BSD and Boost and MIT
URL: https://github.com/oneapi-src/oneDNN/
Source0: %{url}/archive/v%{version}/onednn-%{version}.tar.gz
2021-12-01 16:19:20 +08:00
# This package only work in 64bit arches for now
ExclusiveArch: x86_64 aarch64
2020-12-13 21:15:39 +08:00
2021-09-30 15:30:57 +08:00
BuildRequires: cmake doxygen gcc-c++
2020-12-13 21:15:39 +08:00
# Optionals not yet enabled
#BuildRequires: pkgconfig(OpenCL)
#BuildRequires: pkgconfig(tbb)
# Virtual provides mkldnn
Provides: mkldnn = %{version}-%{release}
Provides: mkl-dnn = %{version}-%{release}
Obsoletes: mkl-dnn < 1.3
# Provides oneDNN
Provides: oneDNN = %{version}-%{release}
%description
one-API Deep Neural Network Library (oneDNN) is an open-source performance
library for deep learning applications. The library includes basic
building blocks for neural networks optimized for Intel Architecture
Processors and Intel Processor Graphics.
oneDNN is intended for deep learning applications and framework developers
interested in improving application performance on Intel CPUs and
GPUs. Deep learning practitioners should use one of the applications
enabled with oneDNN:
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%autosetup -p1 -n oneDNN-%{version}
%build
mkdir -p build && cd build
%cmake ..
%make_build
2021-09-30 15:30:57 +08:00
%check
2021-12-22 16:45:17 +08:00
cd build && ctest
2020-12-13 21:15:39 +08:00
%install
cd build
%make_install
# Remove docs
rm -rf %{buildroot}%{_docdir}/dnnl
%ldconfig_scriptlets
%files
%license LICENSE THIRD-PARTY-PROGRAMS
%doc README.md CONTRIBUTING.md CODE_OF_CONDUCT.md
2021-09-30 15:30:57 +08:00
%{_libdir}/libdnnl.so.2
%{_libdir}/libdnnl.so.2.*
2020-12-13 21:15:39 +08:00
%files devel
%dir %{_includedir}/oneapi
%{_includedir}/oneapi/dnnl
2020-12-13 21:15:39 +08:00
%{_includedir}/dnnl*.h*
%{_libdir}/libdnnl.so
%dir %{_libdir}/cmake/dnnl
%{_libdir}/cmake/dnnl/*.cmake
%changelog
* Sat Aug 6 2022 wisespreading <wisespreading@gmail.com> - 2.6-1
- Update to 2.6 for AMX
2021-12-22 16:45:17 +08:00
* Wed Dec 22 2021 baihuawei <baihuawei@huawei.com> - 2.2-3
- Fix spec file.
2021-12-01 16:19:20 +08:00
* Wed Dec 1 2021 baihuawei <baihuawei@huawei.com> - 2.2-2
- Fix bugs.
2021-09-30 15:30:57 +08:00
* Wed Sep 30 2021 baihuawei <baihuawei@huawei.com> - 2.2-1
- Update to 2.2 to match latest MindSpore.
* Sun Dec 13 2020 sinever <sinever@126.com> - 1.6-1
2020-12-13 21:15:39 +08:00
- Initial spec file.