* [bug#74791] [PATCH] transformations: Add tuning wrapper for gfortran.
@ 2024-12-11 16:06 Romain GARBAGE
2024-12-12 10:09 ` bug#74791: " Ludovic Courtès
0 siblings, 1 reply; 2+ messages in thread
From: Romain GARBAGE @ 2024-12-11 16:06 UTC (permalink / raw)
To: 74791; +Cc: ludovic.courtes, Romain GARBAGE
guix/transformations.scm (tuning-compiler): Add gfortran to the list
of wrapped compilers.
Change-Id: Ic7eaa07acbb5ea013af0d515686e961106a6bbbb
---
guix/transformations.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/guix/transformations.scm b/guix/transformations.scm
index 3f7d20beaa..131b8564f8 100644
--- a/guix/transformations.scm
+++ b/guix/transformations.scm
@@ -531,7 +531,7 @@ (define bin (string-append #$output "/bin"))
(symlink #$program
(string-append bin "/" program)))
'("cc" "gcc" "clang" "g++" "c++" "clang++"
- "go" "rustc" "zig")))))))
+ "gfortran" "go" "rustc" "zig")))))))
(define (build-system-with-tuning-compiler bs micro-architecture)
"Return a variant of BS, a build system, that ensures that the compiler that
base-commit: c2e2b0376b82a503e064fa826d1b153d94bf0b06
--
2.46.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* bug#74791: [PATCH] transformations: Add tuning wrapper for gfortran.
2024-12-11 16:06 [bug#74791] [PATCH] transformations: Add tuning wrapper for gfortran Romain GARBAGE
@ 2024-12-12 10:09 ` Ludovic Courtès
0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2024-12-12 10:09 UTC (permalink / raw)
To: Romain GARBAGE; +Cc: 74791-done
Hello comrade,
Romain GARBAGE <romain.garbage@inria.fr> skribis:
> guix/transformations.scm (tuning-compiler): Add gfortran to the list
> of wrapped compilers.
>
> Change-Id: Ic7eaa07acbb5ea013af0d515686e961106a6bbbb
I added the ‘tunable?’ property to ‘lapack’ and confirmed that this
works in a crude but reliable way:
--8<---------------cut here---------------start------------->8---
$ pgrep -fa fortran |grep -e -march
26008 /gnu/store/piai5ba5fx901hr7pwnz2b9vysrrjmlh-gfortran-11.4.0/bin/gfortran -Dblas_EXPORTS -O2 -g -DNDEBUG -fPIC -c /tmp/guix-build-lapack-3.9.0.drv-0/lapack-3.9.0/BLAS/SRC/zher2.f -o CMakeFiles/blas.dir/zher2.f.o -march=skylake
26016 /gnu/store/piai5ba5fx901hr7pwnz2b9vysrrjmlh-gfortran-11.4.0/bin/gfortran -Dblas_EXPORTS -O2 -g -DNDEBUG -fPIC -c /tmp/guix-build-lapack-3.9.0.drv-0/lapack-3.9.0/BLAS/SRC/zhpr2.f -o CMakeFiles/blas.dir/zhpr2.f.o -march=skylake
26019 /gnu/store/piai5ba5fx901hr7pwnz2b9vysrrjmlh-gfortran-11.4.0/bin/gfortran -Dblas_EXPORTS -O2 -g -DNDEBUG -fPIC -c /tmp/guix-build-lapack-3.9.0.drv-0/lapack-3.9.0/BLAS/SRC/zgemm.f -o CMakeFiles/blas.dir/zgemm.f.o -march=skylake
--8<---------------cut here---------------end--------------->8---
Thanks!
Ludo’.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-12-12 10:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-11 16:06 [bug#74791] [PATCH] transformations: Add tuning wrapper for gfortran Romain GARBAGE
2024-12-12 10:09 ` bug#74791: " Ludovic Courtès
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).