[bug#77404,1/1] Activate higher compiler optimization for PETSc.

Message ID 20250331104435.866960-1-luca.cirrottola@inria.fr
State New
Headers
Series PETSc compiler optimization: Pass from -O1 to -O3 |

Commit Message

Luca Cirrottola March 31, 2025, 10:44 a.m. UTC
  ---
 gnu/packages/maths.scm | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
  

Patch

diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 74c486b38a..fd0c940507 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -3658,7 +3658,10 @@  (define-public petsc
       #:test-target "test"
       #:parallel-build? #f             ; build is parallel by default
       #:configure-flags
-      #~(list "--with-mpi=0"
+      #~(list "COPTFLAGS=-g -O3"
+              "CXXOPTFLAGS=-g -O3"
+              "FOPTFLAGS=-g -O3"
+              "--with-mpi=0"
               "--with-openmp=1"
               "--with-openblas=1"
               (string-append "--with-openblas-dir="