|
|
161b9f |
Name: libzdnn
|
|
|
161b9f |
Version: 0.4.0
|
|
|
c545f5 |
Release: 2%{?dist}
|
|
|
161b9f |
Summary: Driver library for the IBM Z Neural Network Processing Assist Facility
|
|
|
161b9f |
|
|
|
161b9f |
License: ASL 2.0
|
|
|
161b9f |
Url: https://github.com/IBM/zDNN
|
|
|
161b9f |
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
|
161b9f |
|
|
|
161b9f |
ExclusiveArch: s390x
|
|
|
161b9f |
BuildRequires: gcc
|
|
|
161b9f |
BuildRequires: g++
|
|
|
161b9f |
BuildRequires: make
|
|
|
161b9f |
BuildRequires: gawk
|
|
|
161b9f |
BuildRequires: automake
|
|
|
161b9f |
BuildRequires: autoconf
|
|
|
161b9f |
|
|
|
161b9f |
# Be explicit about the soversion in order to avoid unintentional changes.
|
|
|
161b9f |
%global soversion 0
|
|
|
161b9f |
|
|
|
161b9f |
%description
|
|
|
161b9f |
The zDNN library provide a user space API for exploitation of the
|
|
|
161b9f |
Neural Network Processing Assist Facility. All application which
|
|
|
161b9f |
intend to use that facility on IBM Z are supposed to do this via this
|
|
|
161b9f |
library.
|
|
|
161b9f |
|
|
|
161b9f |
|
|
|
161b9f |
%package devel
|
|
|
161b9f |
Summary: Development files for %{name}
|
|
|
161b9f |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
161b9f |
|
|
|
161b9f |
%description devel
|
|
|
161b9f |
The %{name}-devel package contains libraries and header files for
|
|
|
161b9f |
developing applications that use %{name}.
|
|
|
161b9f |
|
|
|
161b9f |
|
|
|
161b9f |
%package static
|
|
|
161b9f |
Summary: Static library version %{name}
|
|
|
161b9f |
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
|
|
|
161b9f |
|
|
|
161b9f |
%description static
|
|
|
161b9f |
The %{name}-static package contains the static library of %{name}.
|
|
|
161b9f |
|
|
|
161b9f |
|
|
|
161b9f |
%prep
|
|
|
161b9f |
%autosetup -p1 -n zDNN-%{version}
|
|
|
161b9f |
autoreconf -i
|
|
|
161b9f |
|
|
|
161b9f |
%build
|
|
|
161b9f |
# libzdnn needs to be built with z14 support so override the distro wide options to append -march=z14.
|
|
|
161b9f |
# cflags for the init routines in e.g. zdnn_init.c should just use the distro options.
|
|
|
161b9f |
# export CFLAGS_INIT explicitely since it is not handled by configure
|
|
|
161b9f |
CFLAGS_INIT="%{build_cflags}"; export CFLAGS_INIT; CFLAGS="%{build_cflags} -march=z14 -mtune=z14" CXXFLAGS="%{build_cxxflags} -march=z14 -mtune=z14" %configure
|
|
|
161b9f |
%make_build build
|
|
|
161b9f |
|
|
|
161b9f |
%install
|
|
|
161b9f |
%make_install
|
|
|
161b9f |
mv $RPM_BUILD_ROOT%{_libdir}/libzdnn.so.%{soversion} $RPM_BUILD_ROOT%{_libdir}/libzdnn.so.%{version}
|
|
|
161b9f |
ln -s -r $RPM_BUILD_ROOT%{_libdir}/libzdnn.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libzdnn.so.%{soversion}
|
|
|
161b9f |
|
|
|
161b9f |
rm -f $RPM_BUILD_ROOT%{_libdir}/libzdnn.so
|
|
|
161b9f |
ln -s -r $RPM_BUILD_ROOT%{_libdir}/libzdnn.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libzdnn.so
|
|
|
161b9f |
|
|
|
161b9f |
|
|
|
161b9f |
%files
|
|
|
161b9f |
%{_libdir}/libzdnn.so.%{version}
|
|
|
161b9f |
%{_libdir}/libzdnn.so.%{soversion}
|
|
|
161b9f |
%doc README.md
|
|
|
161b9f |
%license LICENSE
|
|
|
161b9f |
|
|
|
161b9f |
%files devel
|
|
|
161b9f |
%{_includedir}/zdnn.h
|
|
|
161b9f |
%{_libdir}/*.so
|
|
|
161b9f |
|
|
|
161b9f |
%files static
|
|
|
161b9f |
%{_libdir}/libzdnn.a
|
|
|
161b9f |
|
|
|
161b9f |
%changelog
|
|
|
c545f5 |
* Tue Jan 24 2022 Jakub Čajka <jcajka@redhat.com> - 0.4.0-2
|
|
|
c545f5 |
- Release bump
|
|
|
c545f5 |
- Resolves: RHBZ#2093292
|
|
|
c545f5 |
|
|
|
483a61 |
* Fri Mar 25 2022 Jakub <jcajka@redhat.com> - 0.4.0-1
|
|
|
161b9f |
- Initial package import
|
|
|
483a61 |
- Resolves: RHBZ#2070957
|