- Update to 24.11:
* Public major release * Documentation (API, changelogs, build guide, contribution guide, errata, etc.) available here: https://arm-software.github.io/ComputeLibrary/v24.11 OBS-URL: https://build.opensuse.org/package/show/science:machinelearning/ComputeLibrary?expand=0&rev=54
This commit is contained in:
commit
d5c1e7b6ad
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
ComputeLibrary-24.05.tar.gz
Normal file
3
ComputeLibrary-24.05.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:7a1d4f88ad4f2daed3243657aebc8529ae0b63c25285c86145806b4732cc3eea
|
||||
size 14070387
|
3
ComputeLibrary-24.08.tar.gz
Normal file
3
ComputeLibrary-24.08.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b3576ffa2a70e7704bdf7febe7109f4cfb416a0178222b58f5ee0fd455980337
|
||||
size 14210160
|
3
ComputeLibrary-24.09.tar.gz
Normal file
3
ComputeLibrary-24.09.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:49b8620f21cbbe49e825a131d9eacd548532646289b50e070b83860bd88087fe
|
||||
size 14224446
|
3
ComputeLibrary-24.11.tar.gz
Normal file
3
ComputeLibrary-24.11.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:9e4c4901c4448bf7465ff043d8ace7c8fad01adef13fdbbc0dcca85f4e759fea
|
||||
size 14243390
|
342
ComputeLibrary.changes
Normal file
342
ComputeLibrary.changes
Normal file
@ -0,0 +1,342 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 20 12:39:55 UTC 2024 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||
|
||||
- Update to 24.11:
|
||||
* Public major release
|
||||
* Documentation (API, changelogs, build guide,
|
||||
contribution guide, errata, etc.) available here:
|
||||
https://arm-software.github.io/ComputeLibrary/v24.11
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 17 11:55:02 UTC 2024 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||
|
||||
- Update to 24.09:
|
||||
* Public major release
|
||||
* Documentation (API, changelogs, build guide,
|
||||
contribution guide, errata, etc.) available here:
|
||||
https://arm-software.github.io/ComputeLibrary/v24.09
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 3 09:56:28 UTC 2024 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||
|
||||
- Update to 24.08:
|
||||
* Public major release
|
||||
* Documentation (API, changelogs, build guide,
|
||||
contribution guide, errata, etc.) available here:
|
||||
https://arm-software.github.io/ComputeLibrary/v24.08
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 18 07:38:07 UTC 2024 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||
|
||||
- Update to 24.05:
|
||||
* Public major release
|
||||
* Documentation (API, changelogs, build guide,
|
||||
contribution guide, errata, etc.) available here:
|
||||
https://arm-software.github.io/ComputeLibrary/v24.05
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 3 09:17:31 UTC 2024 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||
|
||||
- Update to 24.02.1:
|
||||
* Drop libarm_compute_core.so
|
||||
* Public patch release
|
||||
* Documentation (API, changelogs, build guide,
|
||||
contribution guide, errata, etc.) available here:
|
||||
https://arm-software.github.io/ComputeLibrary/v24.02.1
|
||||
- Skipped 24.02:
|
||||
* Public major release
|
||||
* Documentation (API, changelogs, build guide,
|
||||
contribution guide, errata, etc.) available here:
|
||||
https://arm-software.github.io/ComputeLibrary/v24.02
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 7 09:05:47 UTC 2023 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||
|
||||
- Update to 23.11:
|
||||
* Public major release
|
||||
* Documentation (API, changelogs, build guide,
|
||||
contribution guide, errata, etc.) available here:
|
||||
https://arm-software.github.io/ComputeLibrary/v23.11
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 5 14:24:12 UTC 2023 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||
|
||||
- Update to 23.08:
|
||||
* Public major release
|
||||
* Documentation (API, changelogs, build guide,
|
||||
contribution guide, errata, etc.) available here:
|
||||
https://arm-software.github.io/ComputeLibrary/v23.08
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 12 12:24:24 UTC 2023 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||
|
||||
- Update to 23.05:
|
||||
* Public major release
|
||||
* Documentation (API, changelogs, build guide,
|
||||
contribution guide, errata, etc.) available here:
|
||||
https://arm-software.github.io/ComputeLibrary/v23.05
|
||||
- Drop upstream patch:
|
||||
* fix-gcc13-fallout.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 11 12:15:38 UTC 2023 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||
|
||||
- More fixes to use python3 as the python script interpreter
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 5 06:08:28 UTC 2023 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||
|
||||
- Update fix-gcc13-fallout.patch with upstream version
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 27 21:36:33 UTC 2023 - Hans-Peter Jansen <hpj@urpla.net>
|
||||
|
||||
- Apply fix-gcc13-fallout.patch to fix the gcc 13 fallout
|
||||
- Use python3 as the python script interpreter
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 14 13:24:45 UTC 2023 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||
|
||||
- Update to 23.02:
|
||||
* Public major release
|
||||
* Documentation (API, changelogs, build guide,
|
||||
contribution guide, errata, etc.) available here:
|
||||
https://arm-software.github.io/ComputeLibrary/v23.02
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 28 07:37:29 UTC 2022 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||
|
||||
- Update to 22.11:
|
||||
* Public major release
|
||||
* Documentation (API, changelogs, build guide,
|
||||
contribution guide, errata, etc.) available here:
|
||||
https://arm-software.github.io/ComputeLibrary/v22.11
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 30 09:13:11 UTC 2022 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||
|
||||
- Update to 22.08:
|
||||
* Public major release
|
||||
* Documentation (API, changelogs, build guide,
|
||||
contribution guide, errata, etc.) available here:
|
||||
https://arm-software.github.io/ComputeLibrary/v22.08
|
||||
- Drop upstream patch:
|
||||
* fix-with-gcc12.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue May 31 12:09:33 UTC 2022 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||
|
||||
- Update to 22.05:
|
||||
* Public major release
|
||||
* Documentation (API, changelogs, build guide,
|
||||
contribution guide, errata, etc.) available here:
|
||||
https://arm-software.github.io/ComputeLibrary/v22.05
|
||||
- Fix build with GCC12:
|
||||
* fix-with-gcc12.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 15 13:08:32 UTC 2022 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||
|
||||
- Update to 22.02:
|
||||
* Public major release
|
||||
* Documentation (API, changelogs, build guide,
|
||||
contribution guide, errata, etc.) available here:
|
||||
https://arm-software.github.io/ComputeLibrary/v22.02
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 1 10:01:36 UTC 2021 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||
|
||||
- Update to 21.11:
|
||||
* Public major release
|
||||
* Documentation (API, changelogs, build guide,
|
||||
contribution guide, errata, etc.) available here:
|
||||
https://arm-software.github.io/ComputeLibrary/v21.11/
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 9 08:02:05 UTC 2021 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||
|
||||
- Update to 21.08:
|
||||
* Public major release
|
||||
* Documentation (API, changelogs, build guide,
|
||||
contribution guide, errata, etc.) available here:
|
||||
https://arm-software.github.io/ComputeLibrary/v21.08/
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri May 21 06:45:21 UTC 2021 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||
|
||||
- Update to 21.05:
|
||||
* Public major release
|
||||
* Documentation (API, changelogs, build guide,
|
||||
contribution guide, errata, etc.) available here:
|
||||
https://arm-software.github.io/ComputeLibrary/v21.05/
|
||||
- Drop patch which is not needed anymore:
|
||||
* acl-fix-packaging-issue.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 7 16:40:47 UTC 2021 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||
|
||||
- Add patch to fix build of ArmNN with openCL:
|
||||
* acl-fix-packaging-issue.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 7 11:12:51 UTC 2021 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||
|
||||
- Package separately libarm_compute_core and libarm_compute_graph
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 29 12:14:30 UTC 2021 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||
|
||||
- Update to 21.02:
|
||||
* Public major release
|
||||
* Documentation (API, changelogs, build guide,
|
||||
contribution guide, errata, etc.) available here:
|
||||
https://arm-software.github.io/ComputeLibrary/v21.02/
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 9 14:30:01 UTC 2020 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||
|
||||
- Update to 20.11:
|
||||
* Public major release
|
||||
* Deprecation notice:
|
||||
Deprecated GLES functions and kernels
|
||||
Deprecated Neon and OpenCL Computer Vision functions
|
||||
* Documentation (API, changelogs, build guide,
|
||||
contribution guide, errata, etc.) available here:
|
||||
https://arm-software.github.io/ComputeLibrary/v20.11/
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 3 09:04:07 UTC 2020 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||
|
||||
- Update to 20.08:
|
||||
* Public major release
|
||||
* Documentation (API, changelogs, build guide,
|
||||
contribution guide, errata, etc.) available here:
|
||||
https://arm-software.github.io/ComputeLibrary/v20.08/
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 4 09:47:09 UTC 2020 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||
|
||||
- Update to 20.05:
|
||||
* Public major release
|
||||
* Documentation (API, changelogs, build guide,
|
||||
contribution guide, errata, etc.) available here:
|
||||
https://arm-software.github.io/ComputeLibrary/v20.05/
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 9 17:45:33 UTC 2020 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||
|
||||
- Update to 20.02.1 (no upstream changelog)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 25 16:05:12 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- Update to 19.11.1:
|
||||
* Fix offset calculation in NEReductionOperationKernel.
|
||||
* Fix data layout in NEScaleKernel for nhwc.
|
||||
* Retain configuration step data layout to avoid side-effects.
|
||||
* Perform sqrt in double domain for L2 pooling.
|
||||
* Fix output shape calculation for Reduce Mean.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 25 15:50:33 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- Cleanup a bit with spec-cleaner
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Dec 6 13:44:14 UTC 2019 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||
|
||||
- Update to 19.11 (no upstream changelog)
|
||||
- Revert previous commit to disable neon on armv7
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 26 15:40:34 UTC 2019 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||
|
||||
- Enable neon on armv7
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 9 08:49:21 UTC 2019 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||
|
||||
- Fix Python scripts interpreter
|
||||
- Fix -devel package dep
|
||||
- Drop gcc 4.8 workaround
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 5 07:22:11 UTC 2019 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||
|
||||
- Update to 19.08 (no upstream changelog)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 3 13:50:04 UTC 2019 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||
|
||||
- Add validation test option (disabled by default since CL is
|
||||
unusable inside OBS)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 3 13:05:20 UTC 2019 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||
|
||||
- Update to 19.05 (no upstream changelog)
|
||||
- Remove upstream patch:
|
||||
* computelibrary-fix_opencl.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 19 10:25:12 UTC 2019 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||
|
||||
- Package scripts
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 11 13:13:54 UTC 2019 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||
|
||||
- Add patch to fix build with openCL:
|
||||
* computelibrary-fix_opencl.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 3 16:27:53 UTC 2019 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||
|
||||
- Update to 19.02
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 14 13:08:46 UTC 2019 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||
|
||||
- Update to 18.11
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 13 12:50:04 UTC 2018 - guillaume.gardet@opensuse.org
|
||||
|
||||
- Update to 18.08
|
||||
- Remove upstreamed patches:
|
||||
* fix_build_with_scons3.patch
|
||||
* fix_c++11_syntax.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 5 07:52:03 UTC 2018 - guillaume.gardet@opensuse.org
|
||||
|
||||
- Add missing includes
|
||||
- Add sample-data
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 4 10:07:34 UTC 2018 - guillaume.gardet@opensuse.org
|
||||
|
||||
- Add soname option and require scons >= 2.4
|
||||
- Add a -devel package
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jun 1 13:01:07 UTC 2018 - guillaume.gardet@opensuse.org
|
||||
|
||||
- Rename from arm_compute to ComputeLibrary (upstream name)
|
||||
- Split libraries to a separate package
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jun 1 10:45:00 UTC 2018 - guillaume.gardet@opensuse.org
|
||||
|
||||
- Update to 18.05
|
||||
- Add patches to fix builds on Leap 15.0+:
|
||||
* fix_build_with_scons3.patch
|
||||
* fix_c++11_syntax.patch
|
||||
- Disable openCL on Leap 15.0+ since the build script is not yet
|
||||
fully compatible with Python3 and breaks when openCL is enabled
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 3 17:03:33 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Initial release 17.03.1
|
||||
|
174
ComputeLibrary.spec
Normal file
174
ComputeLibrary.spec
Normal file
@ -0,0 +1,174 @@
|
||||
#
|
||||
# spec file for package ComputeLibrary
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%define so_ver 43
|
||||
# Disable validation tests by default due to opencl needing to be set up
|
||||
%bcond_with computelibrary_tests
|
||||
Name: ComputeLibrary
|
||||
Version: 24.11
|
||||
Release: 0
|
||||
Summary: ARM Compute Library
|
||||
License: MIT
|
||||
URL: https://developer.arm.com/technologies/compute-library
|
||||
Source: https://github.com/ARM-software/ComputeLibrary/archive/v%{version}.tar.gz#/ComputeLibrary-%{version}.tar.gz
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: git-core
|
||||
BuildRequires: ocl-icd-devel
|
||||
BuildRequires: scons >= 2.4
|
||||
Recommends: %{name}-sample-data
|
||||
ExclusiveArch: aarch64 armv7l armv7hl x86_64
|
||||
|
||||
%description
|
||||
A software library for computer vision and machine learning.
|
||||
The Compute Library is a collection of low-level functions optimized for Arm CPU and GPU architectures targeted at image processing, computer vision, and machine learning.
|
||||
Examples binaries part.
|
||||
|
||||
%package -n libarm_compute%{so_ver}
|
||||
Summary: ARM Compute Library
|
||||
|
||||
%description -n libarm_compute%{so_ver}
|
||||
A software library for computer vision and machine learning.
|
||||
The Compute Library is a collection of low-level functions optimized for Arm CPU and GPU architectures targeted at image processing, computer vision, and machine learning.
|
||||
Library part.
|
||||
|
||||
%package -n libarm_compute_graph%{so_ver}
|
||||
Summary: ARM Compute Library - Graph part
|
||||
|
||||
%description -n libarm_compute_graph%{so_ver}
|
||||
A software library for computer vision and machine learning.
|
||||
The Compute Library is a collection of low-level functions optimized for Arm CPU and GPU architectures targeted at image processing, computer vision, and machine learning.
|
||||
Library part.
|
||||
|
||||
%package devel
|
||||
Summary: ARM Compute Library -- devel
|
||||
Requires: %{name} = %{version}
|
||||
Requires: libarm_compute%{so_ver} = %{version}
|
||||
Requires: libarm_compute_graph%{so_ver} = %{version}
|
||||
# stb headers are required
|
||||
Requires: stb-devel
|
||||
|
||||
%description devel
|
||||
A software library for computer vision and machine learning.
|
||||
The Compute Library is a collection of low-level functions optimized for Arm CPU and GPU architectures targeted at image processing, computer vision, and machine learning.
|
||||
Devel part, including headers.
|
||||
|
||||
%package sample-data
|
||||
%define sampledir sample-data
|
||||
Summary: Compute Library sample data
|
||||
|
||||
%description sample-data
|
||||
Free *.npy and *.ppm files to use with example binaries.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n ComputeLibrary-%{version}
|
||||
|
||||
%build
|
||||
scons os=linux \
|
||||
build=native \
|
||||
install_dir=install \
|
||||
set_soname=1 \
|
||||
examples=1 \
|
||||
opencl=1 \
|
||||
%if %{with computelibrary_tests}
|
||||
validation_tests=1 \
|
||||
%else
|
||||
validation_tests=0 \
|
||||
%endif
|
||||
%ifarch aarch64 aarch64_ilp32
|
||||
neon=1 arch=arm64-v8a \
|
||||
%endif
|
||||
%ifarch armv7l armv7hl
|
||||
neon=0 arch=armv7a \
|
||||
%endif
|
||||
%ifarch x86_64
|
||||
neon=0 arch=x86_64 \
|
||||
%endif
|
||||
extra_cxx_flags="%{optflags}" \
|
||||
Werror=0 %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
rm build/examples/*.o
|
||||
rm build/examples/gemm_tuner/*.o
|
||||
mv build/examples/gemm_tuner/* build/examples
|
||||
rm -r build/examples/gemm_tuner
|
||||
mkdir -p %{buildroot}%{_bindir}
|
||||
install -Dm0755 build/examples/* %{buildroot}%{_bindir}/
|
||||
mkdir -p %{buildroot}%{_libdir}
|
||||
cp -a build/*.so* %{buildroot}%{_libdir}/
|
||||
# FIXME: scons should install headers thanks to: install_dir=%%{buildroot}%%{_prefix} but this is broken
|
||||
mkdir -p %{buildroot}%{_includedir}/
|
||||
cp -a arm_compute/ support/ utils/ include/half/ include/libnpy/ %{buildroot}%{_includedir}/
|
||||
# Remove *.cpp files from includedir
|
||||
rm -f $(find %{buildroot}%{_includedir}/ -name *.cpp)
|
||||
# Install sample data
|
||||
mkdir -p %{buildroot}%{_datadir}/ComputeLibrary/%{sampledir}
|
||||
cp -r data/* %{buildroot}%{_datadir}/ComputeLibrary/%{sampledir}
|
||||
# Install scripts
|
||||
rm -rf scripts/modules # Unused scripts/module/Shell.py
|
||||
install -Dm0755 scripts/* %{buildroot}%{_bindir}
|
||||
rm -f %{buildroot}%{_bindir}/*.h
|
||||
# Fix Python scripts interpreter
|
||||
for pyfile in `ls %{buildroot}%{_bindir}/*.py`; do
|
||||
sed -i -e 's|#!%{_bindir}/env python3|#!%{_bindir}/python3|' $pyfile
|
||||
sed -i -e 's|#!%{_bindir}/env python|#!%{_bindir}/python3|' $pyfile
|
||||
done
|
||||
sed -i -e 's|#!%{_bindir}/python|#!%{_bindir}/python3|' %{buildroot}%{_bindir}/generate_build_files.py
|
||||
# Drop files which should not be in _bindir
|
||||
rm %{buildroot}%{_bindir}/BUILD.bazel
|
||||
rm %{buildroot}%{_bindir}/*.txt
|
||||
|
||||
%post -n libarm_compute%{so_ver} -p /sbin/ldconfig
|
||||
%postun -n libarm_compute%{so_ver} -p /sbin/ldconfig
|
||||
|
||||
%post -n libarm_compute_graph%{so_ver} -p /sbin/ldconfig
|
||||
%postun -n libarm_compute_graph%{so_ver} -p /sbin/ldconfig
|
||||
|
||||
%if %{with computelibrary_tests}
|
||||
%check
|
||||
LD_LIBRARY_PATH="build/" build/tests/arm_compute_validation
|
||||
%endif
|
||||
|
||||
%files
|
||||
%{_bindir}/*
|
||||
|
||||
%files -n libarm_compute%{so_ver}
|
||||
%license LICENSES/MIT.txt
|
||||
%{_libdir}/libarm_compute.so.%{so_ver}*
|
||||
|
||||
%files -n libarm_compute_graph%{so_ver}
|
||||
%license LICENSES/MIT.txt
|
||||
%{_libdir}/libarm_compute_graph.so.%{so_ver}*
|
||||
|
||||
%files devel
|
||||
%dir %{_includedir}/arm_compute
|
||||
%dir %{_includedir}/half
|
||||
%dir %{_includedir}/libnpy
|
||||
%dir %{_includedir}/support
|
||||
%dir %{_includedir}/utils
|
||||
%{_includedir}/arm_compute/*
|
||||
%{_includedir}/half/*
|
||||
%{_includedir}/libnpy/*
|
||||
%{_includedir}/support/*
|
||||
%{_includedir}/utils/*
|
||||
%{_libdir}/*.so
|
||||
|
||||
%files sample-data
|
||||
%dir %{_datadir}/ComputeLibrary/
|
||||
%{_datadir}/ComputeLibrary/%{sampledir}
|
||||
|
||||
%changelog
|
Loading…
x
Reference in New Issue
Block a user