From 21ee275754d4c9f99cf702743baac047ce24e65e9f8b2a5d7d7f654a1ab5e863 Mon Sep 17 00:00:00 2001 From: David Anes Date: Fri, 25 Feb 2022 17:42:29 +0000 Subject: [PATCH] Accepting request 957375 from home:dirkmueller:Factory - build parallel to reduce build time by ~ 30% OBS-URL: https://build.opensuse.org/request/show/957375 OBS-URL: https://build.opensuse.org/package/show/science/suitesparse?expand=0&rev=42 --- suitesparse.changes | 5 +++++ suitesparse.spec | 12 ++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/suitesparse.changes b/suitesparse.changes index 47dd067..c020375 100644 --- a/suitesparse.changes +++ b/suitesparse.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Feb 24 13:59:58 UTC 2022 - Dirk Müller + +- build parallel to reduce build time by ~ 30% + ------------------------------------------------------------------- Thu Aug 5 08:13:50 UTC 2021 - Guillaume GARDET diff --git a/suitesparse.spec b/suitesparse.spec index 09165f1..5982830 100644 --- a/suitesparse.spec +++ b/suitesparse.spec @@ -1,7 +1,7 @@ # # spec file for package suitesparse # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -612,12 +612,8 @@ rm SPQR/Doc/spqr.pdf %patch775418 -p1 %build -%ifarch ppc64le aarch64 %define limitbuild 1500 %limit_build -m %{limitbuild} -%define JOBS %{jobs} -%define _lto_cflags -flto=%{jobs} -%endif %global _lto_cflags %{_lto_cflags} -ffat-lto-objects %if 0%{?suse_version} < 1500 @@ -631,7 +627,11 @@ blas_lib=-lopenblas blas_lib=-lblas %endif -make MY_METIS_LIB="-lmetis" LAPACK="-llapack" BLAS="$blas_lib" TBB="-ltbb" CFLAGS="%{optflags}" CXXFLAGS="%{optflags}" go +# Better performance with -flto +unset MALLOC_CHECK_ +unset MALLOC_PERTURB_ + +%make_jobs MY_METIS_LIB="-lmetis" LAPACK="-llapack" BLAS="$blas_lib" TBB="-ltbb" CFLAGS="%{optflags}" CXXFLAGS="%{optflags}" go chrpath -d lib/*.so.*.* chrpath -d GraphBLAS/build/*.so chrpath -d GraphBLAS/build/*.so.*.*