It is possible they recently added support for using it with 64 bit integers. 
You would need to through their documents to see how to get mkl_spblas.h. to 
use 64 bit integers and if the library for 64 bit integer has a different name 
that would need to be linked to. 

  You would need to remove the requires32bitint = 1 from the various 
config/BuildSystem/config/packages/mkl_*.py routines to get configure to accept 
MKL sparse with 64 bit integers.


> On Sep 24, 2022, at 11:04 AM, Bro H <[email protected]> wrote:
> 
> Hello.
> 
> I would like to build PETSc with support for MKL Sparse BLAS, so that
> I can use MATAIJMKL for improved performance, but I also need to use
> 64 bit indices. I'm trying to build using the following parameters:
> 
> ./configure --force --prefix="/opt/libs/petsc" --with-precision=double
> --with-64-bit-indices
> --with-blas-lapack-dir=/opt/intel/oneapi/mkl/latest/
> --with-mkl_sparse=1 --with-mkl_sparse_optimize=1 --with-debugging=0
> --with-shared-libraries=1 --with-cxx=0 --with-mpi=1 --with-hdf5=1
> --with-hdf5-dir="${HDF5_ROOT}" --with-openmp=1
> 
> Configuration fails when using --with-64-bit-indices simultaneously
> with --with-mkl_sparse=1 and/or --with-mkl_sparse_optimize=1 with the
> following possible errors:
> 
> "Cannot use mkl_sparse with 64 bit integers, it is not coded for this
> capability"
> "Cannot use mkl_sparse_optimize with 64 bit integers, it is not coded
> for this capability"
> 
> But doesn't the latest version of MKL Sparse BLAS support 64 bit
> indices? It is using MKL_INT in mkl_spblas.h.
> 
> Is it possible to build PETSc with 64 bit indices and MKL Sparse BLAS?

Reply via email to