Subject: Re: [PATCH] transformations: Add tuning wrapper for gfortran.

From: Ludovic Courtès <[email-masked]>
Date: Thu, 12 Dec 2024 11:09:59 +0100

Hello comrade,

Romain GARBAGE <[email-masked]> 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’.