[petsc-users] Inquiry about configuring PETSc with AOCL BLAS/LAPACK

Yongzhong Li yongzhong.li at mail.utoronto.ca
Mon Aug 11 11:31:49 CDT 2025


Dear PETSc’s developer,

Hi, I am a user of PETSc. I have some questions about how we can configure PETSc with AOCL BLAS and LAPACK.

Previously, we linked PETSc with Intel MKL BLAS. This solution provides us with much better multithreading capability for sparse matrix-vector product compared with configuring PETSc with OpenBLAS. Now, our compute nodes have been upgraded with AMD CPUs, we are considering switching from Intel MKL to AMD AOCL.

My questions are:


  1.  If we configure PETSc in compile time with —with-blaslapack-dir = $AOCLROOT, will we be able to use AOCL BLAS as the backend of PETSc MatMult() API?
  2.  What if AOCL BLAS and AOCL LAPACK are installed in two different directories, not under AOCLROOT?
  3.  PETSc has MatAIJMKL type for sparse matrix stored in Intel MKL format. Does PETSc also have another type for AMD AOCL?

Thanks!
Yongzhong
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20250811/ff871656/attachment-0001.html>


More information about the petsc-users mailing list