<div dir="auto"><div>Just to clarify one statement I made: linking against both your own fftw & Intel's is very dangerous. It may be that some subroutines will come from your library, some from Intel's and there is no reason they should be compatible. Only use one of the two.</div><div dir="auto"><br></div><div dir="auto">N.B., I am not certain that the Intel fftw is compatible with W2k. I tried some years ago and decided I was wasting time on non-critical code, so only use fftw3. If someone is using cdft please post here.</div><div><br></div><div data-smartmail="gmail_signature">___<br>Emeritus Professor Laurence Marks (Laurie)<br>Department of Materials Science and Engineering, Northwestern University<br><a href="http://www.numis.northwestern.edu">www.numis.northwestern.edu</a><br>"Research is to see what everybody else has seen, and to think what nobody else has thought" Albert Szent-Györgyi</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Wed, Sep 10, 2025, 01:51 Fecher, Gerhard <<a href="mailto:fecher@uni-mainz.de">fecher@uni-mainz.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">more comments<br>
I could not find that zenver5 is a valid CPU architecture for ixc or ifx on <a href="https://www.intel.com/content/www/us/en/docs/fortran-compiler/developer-guide-reference/2025-2/march.html" rel="noreferrer noreferrer" target="_blank">https://www.intel.com/content/www/us/en/docs/fortran-compiler/developer-guide-reference/2025-2/march.html</a><br>
(this concerns also other CPU dependent compiler switches -x, -ax, -arch, there is no zenverX)<br>
It seems it was just used by a "beginner" hoshi on <a href="https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-error-with-fast-on-AMD-Ryzen-9-9900X-using-ifx/td-p/1712241" rel="noreferrer noreferrer" target="_blank">https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-error-with-fast-on-AMD-Ryzen-9-9900X-using-ifx/td-p/1712241</a><br>
I would guess  -march=znver5 (because it can be used with the GNU compilers) is just ignored why should Intel be interested to write an optimized comnpiler for AMD CPU's ?<br>
Did you ever test whether -march=znver5 changes anything  ?<br>
As mentioned earlier -axCORE-AVX512, -axCORE-AVX2 or a combination of both may work on AMD processors (at least they don't slow the programm seriuously, and I didn't find dead electrons)<br>
<br>
There was already a lot of discussion on FFTW3 and ELPA at the beginning of the year<br>
<br>
Ciao<br>
Gerhard<br>
<br>
DEEP THOUGHT in D. Adams; Hitchhikers Guide to the Galaxy:<br>
"I think the problem, to be quite honest with you,<br>
is that you have never actually known what the question is."<br>
<br>
====================================<br>
Dr. Gerhard H. Fecher<br>
Institut of Physics<br>
Johannes Gutenberg - University<br>
55099 Mainz<br>
________________________________________<br>
Von: Wien [<a href="mailto:wien-bounces@zeus.theochem.tuwien.ac.at" target="_blank" rel="noreferrer">wien-bounces@zeus.theochem.tuwien.ac.at</a>] im Auftrag von Laurence Marks [<a href="mailto:laurence.marks@gmail.com" target="_blank" rel="noreferrer">laurence.marks@gmail.com</a>]<br>
Gesendet: Dienstag, 9. September 2025 23:20<br>
An: A Mailing list for WIEN2k users<br>
Betreff: Re: [Wien] FFTW and ifx/icx issue relevant to WIEN2k<br>
<br>
Comments.<br>
<br>
  1.  I have never seen -O3 do anything with icc/ifort except kill defenceless electrons and make the code slower. I will be happy to be proved wrong with ifx/icx.<br>
  2.  I always use -mkl, rather than making mistakes chasing how intel changes its libraries.<br>
  3.  I think you might have issues with -mkl_cdft (intel's version of fftw) and FFTW3<br>
<br>
On Tue, Sep 9, 2025 at 4:10 PM Straus, Daniel B <<a href="mailto:dstraus@tulane.edu" target="_blank" rel="noreferrer">dstraus@tulane.edu</a><mailto:<a href="mailto:dstraus@tulane.edu" target="_blank" rel="noreferrer">dstraus@tulane.edu</a>>> wrote:<br>
Sorry for the long delay in responding—I was set to receive a digest of list messages, and it only comes once every couple of weeks.<br>
<br>
Yes, this is on a Zen 5 computer, and it is running Rocky Linux 10. I am using the Intel compiler and MKL, rather than the one AMD provides. IFX and ICX support the march=znver5 flag. All the WIEN2k 24.1 patches available as of 9/1 were installed.<br>
<br>
To be clear, on my workstation, FFTW still will work with WIEN2k even if the autoconf script is not regenerated, but there may be a performance impact as it is not using the proper Intel libraries for Fortran calls to FFTW. However, 3ddens would then not compile, and if I also attempted to use ELPA, then parallel LAPW1 would not compile. Regenerating the autoconf script for FFTW and recompiling it solved both problems. You should check the config.log for your FFTW compilation to see if there is a line such as “ld: cannot find -loopopt=0” to see if this error is occurring. For me, the configure script continued even after this error, but it was using GNU default libraries rather than the Intel provided libraries.<br>
<br>
siteconfig_lapw is set to use the ifx and icx compilers, and here are the flags under “Options” in siteconfig_lapw I am using the following compiler options for WIEN2k with the IFX compiler.<br>
Current settings:<br>
  M   OpenMP switch:           -qopenmp<br>
  O   Compiler options:        -O3 -march=znver5 -traceback -assume buffered_io -FR -I$(MKLROOT)/include<br>
  L   Linker Flags:            $(FOPT) -L$(MKLROOT)/lib -lpthread -lm -ldl -liomp5 -Wl,-rpath,$MKLROOT/lib<br>
  P   Preprocessor flags       '-DParallel'<br>
  R   R_LIBS (LAPACK+BLAS):    -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core<br>
  F   FFTW options:            -DFFTW3 -DFFTW_OMP -I/home/software/fftw-3.3.10/include<br>
      FFTW-LIBS:               -L/home/software/fftw-3.3.10/lib -lfftw3 -lfftw3_omp<br>
  X   LIBX options:<br>
      LIBXC-LIBS:<br>
<br>
For Parallel Options in siteconfig_lapw, here are the flags I am using:<br>
Your current parallel settings (options and libraries) are:<br>
     C   Parallel Compiler:          mpiifx<br>
     FP  Parallel Compiler Options:  -O3 -FR -march=znver5 -fc=ifx -traceback -assume buffered_io -I$(MKLROOT)/include<br>
     MP  MPIRUN command:             mpirun -np _NP_ -machinefile _HOSTS_ _EXEC_<br>
     O   Parallel OpenMP switch:     -qopenmp<br>
   Additional setting for SLURM batch systems (is set to 1 otherwise):<br>
     CN  Number of Cores:            1<br>
   Libraries:<br>
     Sp  SCALAPACK:                   -L$(MKLROOT)/lib<br>
                                                     -lmkl_scalapack_lp64<br>
                                                     -L$(MKLROOT)/lib -lmkl_blacs_intelmpi_lp64<br>
     E   ELPA options:                -DELPA -I/home/software/elpa-2025.06.001/include/elpa-2025.06.001/elpa<br>
                                                     -I/home/software/elpa-2025.06.001/include/elpa-2025.06.001/modules<br>
         ELPA-LIBS:                   -lelpa -L/home/software/elpa-2025.06.001/lib -Wl,-rpath=/home/software/elpa-2025.06.001/lib<br>
     RP  Parallel-Libs:      $(R_LIBS) -lmkl_cdft_core<br>
<br>
In case it’s relevant here is what I passed to the configure script for FFTW3 (after regenerating the script with autoconf):<br>
module load oneapi/2025.2.0<br>
./configure --prefix=/home/software/fftw-3.3.10 CC="mpiicx -cc=icx" MPICC="mpiicx -cc=icx" F77="mpiifx -fc=ifx" FFLAGS="-O3 -march=znver5 -I"${MKLROOT}/include"" CFLAGS="-O3 -march=znver5 -I"${MKLROOT}/include"" CXXFLAGS="-I"${MKLROOT}/include"" LDFLAGS="-L${MKLROOT}/lib -lmkl_scalapack_lp64 -lmkl_cdft_core -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -lmkl_blacs_intelmpi_lp64 -liomp5 -lpthread -lm -ldl" --enable-option-checking=fatal --enable-avx512 --enable-avx2 --enable-mpi --enable-openmp --enable-threads<br>
<br>
And for ELPA:<br>
module load oneapi/2025.2.0<br>
./configure --prefix=/home/software/elpa-2025.06.001 CC="mpiicx -cc=icx" CXX="mpiicpx -cxx=icpx" FC="mpiifx -fc=ifx" CFLAGS="-O3 -march=znver5 -I"${MKLROOT}/include"" FCFLAGS="-O3 -march=znver5 -I"${MKLROOT}/include"" CXXFLAGS="-O3 -march=znver5 -I"${MKLROOT}/include"" LDFLAGS="-L${MKLROOT}/lib -lmkl_scalapack_lp64 -lmkl_cdft_core -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -lmkl_blacs_intelmpi_lp64 -liomp5 -lpthread -lm -ldl" --enable-option-checking=fatal --with-mpi=yes --enable-openmp=yes<br>
<br>
Hopefully this is helpful.<br>
<br>
<br>
<br>
Daniel Straus<br>
Assistant Professor<br>
Department of Chemistry<br>
Tulane University<br>
5088 Percival Stern Hall<br>
6400 Freret Street<br>
New Orleans, LA 70118<br>
(504) 862-3585<br>
<a href="http://straus.tulane.edu/" rel="noreferrer noreferrer" target="_blank">http://straus.tulane.edu/</a><br>
<br>
_______________________________________________<br>
Wien mailing list<br>
<a href="mailto:Wien@zeus.theochem.tuwien.ac.at" target="_blank" rel="noreferrer">Wien@zeus.theochem.tuwien.ac.at</a><mailto:<a href="mailto:Wien@zeus.theochem.tuwien.ac.at" target="_blank" rel="noreferrer">Wien@zeus.theochem.tuwien.ac.at</a>><br>
<a href="http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien" rel="noreferrer noreferrer" target="_blank">http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien</a><br>
SEARCH the MAILING-LIST at:  <a href="http://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/index.html" rel="noreferrer noreferrer" target="_blank">http://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/index.html</a><br>
<br>
<br>
--<br>
Emeritus Professor Laurence Marks (Laurie)<br>
Northwestern University<br>
Webpage<<a href="http://www.numis.northwestern.edu" rel="noreferrer noreferrer" target="_blank">http://www.numis.northwestern.edu</a>> and Google Scholar link<<a href="http://scholar.google.com/citations?user=zmHhI9gAAAAJ&hl=en" rel="noreferrer noreferrer" target="_blank">http://scholar.google.com/citations?user=zmHhI9gAAAAJ&hl=en</a>><br>
"Research is to see what everybody else has seen, and to think what nobody else has thought", Albert Szent-Györgyi<br>
_______________________________________________<br>
Wien mailing list<br>
<a href="mailto:Wien@zeus.theochem.tuwien.ac.at" target="_blank" rel="noreferrer">Wien@zeus.theochem.tuwien.ac.at</a><br>
<a href="http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien" rel="noreferrer noreferrer" target="_blank">http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien</a><br>
SEARCH the MAILING-LIST at:  <a href="http://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/index.html" rel="noreferrer noreferrer" target="_blank">http://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/index.html</a><br>
</blockquote></div>