Accepting request 945783 from home:alarrosa:branches:science
- Remove the memoryperjob constraint which doesn't work as one would expect and breaks ppc64 builds. - Use %limit_memory -m 1700 to set the number of concurrent jobs to a sane value and fix OOM errors when building in workers with many cores. - Decrease the disk constraint to 9G which seems to be enough OBS-URL: https://build.opensuse.org/request/show/945783 OBS-URL: https://build.opensuse.org/package/show/science/opencv?expand=0&rev=29
This commit is contained in:
parent
52a1d28937
commit
216a513cba
@ -2,13 +2,10 @@
|
|||||||
<constraints>
|
<constraints>
|
||||||
<hardware>
|
<hardware>
|
||||||
<disk>
|
<disk>
|
||||||
<size unit="G">13</size>
|
<size unit="G">9</size>
|
||||||
</disk>
|
</disk>
|
||||||
<memory>
|
<memory>
|
||||||
<size unit="M">5700</size>
|
<size unit="M">5700</size>
|
||||||
</memory>
|
</memory>
|
||||||
<memoryperjob>
|
|
||||||
<size unit="M">1600</size>
|
|
||||||
</memoryperjob>
|
|
||||||
</hardware>
|
</hardware>
|
||||||
</constraints>
|
</constraints>
|
||||||
|
@ -1,3 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jan 10 11:08:32 UTC 2022 - Antonio Larrosa <alarrosa@suse.com>
|
||||||
|
|
||||||
|
- Remove the memoryperjob constraint which doesn't work as one
|
||||||
|
would expect and breaks ppc64 builds.
|
||||||
|
- Use %limit_memory -m 1700 to set the number of concurrent
|
||||||
|
jobs to a sane value and fix OOM errors when building in
|
||||||
|
workers with many cores.
|
||||||
|
- Decrease the disk constraint to 9G which seems to be enough
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Dec 25 17:43:11 UTC 2021 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
|
Sat Dec 25 17:43:11 UTC 2021 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
|
||||||
|
|
||||||
|
@ -51,6 +51,7 @@ BuildRequires: cmake
|
|||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: libeigen3-devel
|
BuildRequires: libeigen3-devel
|
||||||
BuildRequires: libjpeg-devel
|
BuildRequires: libjpeg-devel
|
||||||
|
BuildRequires: memory-constraints
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
# OpenJPEGTargets.cmake erroneously requires the binaries
|
# OpenJPEGTargets.cmake erroneously requires the binaries
|
||||||
BuildRequires: openjpeg2
|
BuildRequires: openjpeg2
|
||||||
@ -282,6 +283,8 @@ cp opencv_contrib-%{version}/LICENSE LICENSE.contrib
|
|||||||
rm -f doc/packaging.txt
|
rm -f doc/packaging.txt
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%limit_build -m 1700
|
||||||
|
|
||||||
# openCV does not understand the standard RelWithDebinfo,
|
# openCV does not understand the standard RelWithDebinfo,
|
||||||
# but has a separate variable for it
|
# but has a separate variable for it
|
||||||
# Dynamic dispatch: https://github.com/opencv/opencv/wiki/CPU-optimizations-build-options
|
# Dynamic dispatch: https://github.com/opencv/opencv/wiki/CPU-optimizations-build-options
|
||||||
|
Loading…
Reference in New Issue
Block a user