[petsc-users] using intel mkl for optimized blas/lapack on amd nodes
Junchao Zhang
junchao.zhang at gmail.com
Mon Jun 8 12:12:53 CDT 2026
Hi, Chris,
Could you check out this MR
https://urldefense.us/v3/__https://gitlab.com/petsc/petsc/-/merge_requests/9327__;!!G_uCfscf7eWS!ctF3nShH_6dTwbShHGEKUtwTmiwcG7QifVwCzUXYkhfzZUUbY2Qjzn9hPfKSa3jOWkC94o2dELHf38z0XsL4xh-DrwXl$ and test
the attached ex00.c in your environment to see if it makes a difference?
On my machine, it helps a little, as the MKL version alway optimizes for
Zen.
Thanks!
--Junchao Zhang
On Fri, Jun 5, 2026 at 2:07 AM Klaij, Christiaan <C.Klaij at marin.nl> wrote:
> If the users are supposed to know this and act on it, perhaps an entry in
> the FAQs to raise awareness? With instruction how to check if the user's
> computing center automatically applies the trick.
>
> Chris
>
> ________________________________________
>
> dr. ir. Christiaan Klaij | senior researcher
> Research & Development | CFD Development
> T +31 317 49 33 44 <+31%20317%2049%2033%2044> | https://urldefense.us/v3/__http://www.marin.nl__;!!G_uCfscf7eWS!ctF3nShH_6dTwbShHGEKUtwTmiwcG7QifVwCzUXYkhfzZUUbY2Qjzn9hPfKSa3jOWkC94o2dELHf38z0XsL4xgaQGxNe$
> [image: Facebook] <https://urldefense.us/v3/__https://www.facebook.com/marin.wageningen__;!!G_uCfscf7eWS!ctF3nShH_6dTwbShHGEKUtwTmiwcG7QifVwCzUXYkhfzZUUbY2Qjzn9hPfKSa3jOWkC94o2dELHf38z0XsL4xn4h6nNT$ >
> [image: LinkedIn] <https://urldefense.us/v3/__https://www.linkedin.com/company/marin__;!!G_uCfscf7eWS!ctF3nShH_6dTwbShHGEKUtwTmiwcG7QifVwCzUXYkhfzZUUbY2Qjzn9hPfKSa3jOWkC94o2dELHf38z0XsL4xt3KJkyK$ >
> [image: YouTube] <https://urldefense.us/v3/__https://www.youtube.com/marinmultimedia__;!!G_uCfscf7eWS!ctF3nShH_6dTwbShHGEKUtwTmiwcG7QifVwCzUXYkhfzZUUbY2Qjzn9hPfKSa3jOWkC94o2dELHf38z0XsL4xkY4NqyZ$ >
>
> From: Pierre Jolivet <pierre at joliv.et>
> Sent: Thursday, June 4, 2026 5:03 PM
> To: Junchao Zhang
> Cc: Richard Tran Mills; PETSc users list; Klaij, Christiaan
> Subject: Re: [petsc-users] using intel mkl for optimized blas/lapack on
> amd nodes
>
> You don't often get email from pierre at joliv.et. Learn why this is
> important<https://urldefense.us/v3/__https://aka.ms/LearnAboutSenderIdentification__;!!G_uCfscf7eWS!ctF3nShH_6dTwbShHGEKUtwTmiwcG7QifVwCzUXYkhfzZUUbY2Qjzn9hPfKSa3jOWkC94o2dELHf38z0XsL4xv4xA4yr$ >
> The libfakeintel.so<https://urldefense.us/v3/__http://libfakeintel.so__;!!G_uCfscf7eWS!ctF3nShH_6dTwbShHGEKUtwTmiwcG7QifVwCzUXYkhfzZUUbY2Qjzn9hPfKSa3jOWkC94o2dELHf38z0XsL4xpIBoj_E$ > trick is as old as I can
> remember and it is available in all computing centers I’m using.
> But it’s the duty of the users to preload it (again, on computing centers
> I have access to, module load’ing the MKL on AMD nodes automatically sets
> LD_PRELOAD).
>
> Thanks,
> Pierre
>
> On 4 Jun 2026, at 4:52 PM, Junchao Zhang <junchao.zhang at gmail.com> wrote:
>
> Richard, do you want to trick Intel?
>
> --Junchao Zhang
>
>
> On Thu, Jun 4, 2026 at 2:29 AM Klaij, Christiaan via petsc-users <
> petsc-users at mcs.anl.gov<mailto:petsc-users at mcs.anl.gov>> wrote:
> I came across this issue:
>
> https://urldefense.us/v3/__https://danieldk.eu/software/misc/intel-mkl-on-amd-zen__;!!G_uCfscf7eWS!ctF3nShH_6dTwbShHGEKUtwTmiwcG7QifVwCzUXYkhfzZUUbY2Qjzn9hPfKSa3jOWkC94o2dELHf38z0XsL4xlBmyDlt$ <
> https://urldefense.us/v3/__https://danieldk.eu/software/misc/intel-mkl-on-amd-zen__;!!G_uCfscf7eWS!fsSSG7b4cHz_fsk3H-3DI4kIopw4fIp1MW93aPTq10vZnZKOx1t7cEg2g4MbGyxZXr15OMM0jg0UU0q2p5ktYkQ$
> >
>
> We do configure petsc with the intel mkl for optimized
> blas/lapack using --with-blas-lapack-dir=${MKL_DIR}.
>
> How much would this issue affect the performance of petsc on amd
> nodes? Do you have the proposed workaround in place?
>
> Chris
> <image455803.png>
>
> dr. ir. Christiaan Klaij | senior researcher
> Research & Development | CFD Development
> T +31 317 49 33 44<tel:+31%20317%2049%2033%2044> | https://urldefense.us/v3/__http://www.marin.nl__;!!G_uCfscf7eWS!ctF3nShH_6dTwbShHGEKUtwTmiwcG7QifVwCzUXYkhfzZUUbY2Qjzn9hPfKSa3jOWkC94o2dELHf38z0XsL4xgaQGxNe$ <
> https://urldefense.us/v3/__https://www.marin.nl/__;!!G_uCfscf7eWS!fsSSG7b4cHz_fsk3H-3DI4kIopw4fIp1MW93aPTq10vZnZKOx1t7cEg2g4MbGyxZXr15OMM0jg0UU0q2Ae8qhHs$
> >
> <image705130.png><
> https://urldefense.us/v3/__https://www.facebook.com/marin.wageningen__;!!G_uCfscf7eWS!fsSSG7b4cHz_fsk3H-3DI4kIopw4fIp1MW93aPTq10vZnZKOx1t7cEg2g4MbGyxZXr15OMM0jg0UU0q2P24LxDM$
> >
> <image115249.png><
> https://urldefense.us/v3/__https://www.linkedin.com/company/marin__;!!G_uCfscf7eWS!fsSSG7b4cHz_fsk3H-3DI4kIopw4fIp1MW93aPTq10vZnZKOx1t7cEg2g4MbGyxZXr15OMM0jg0UU0q2D0cffrY$
> >
> <image770232.png><
> https://urldefense.us/v3/__https://www.youtube.com/marinmultimedia__;!!G_uCfscf7eWS!fsSSG7b4cHz_fsk3H-3DI4kIopw4fIp1MW93aPTq10vZnZKOx1t7cEg2g4MbGyxZXr15OMM0jg0UU0q2xfPbYxc$
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20260608/baaf1bf4/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image715333.png
Type: image/png
Size: 5004 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20260608/baaf1bf4/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image900709.png
Type: image/png
Size: 487 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20260608/baaf1bf4/attachment-0005.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image751687.png
Type: image/png
Size: 504 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20260608/baaf1bf4/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image579641.png
Type: image/png
Size: 482 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20260608/baaf1bf4/attachment-0007.png>
More information about the petsc-users
mailing list