Hi science team, I'm talking about the future updates to src:lapack, the reference implementation. BLAS (fortran), LAPACK (fortran), LAPACKE (C), all of them support building the 64-bit-indexing variant.
For fortran we just need to add the "-fdefault-integer-8" flag (for some other fortran compilers it's "-i8"). For LAPACKE (C) there is a LAPACK_ILP64 macro with which the index type will be changed to long. However, the CBLAS code still use int as the index type and upstream had set the problem "deferred": https://github.com/Reference-LAPACK/lapack/issues/184 Does anyone have experience on this problem? i.e. building a 64-bit-indexing CBLAS? BTW, do you have any idea on how to conduct sanity test on these indexing variants? I mean, is it possible to write a program that segfault when calling the 32-bit-indexing ABI, and works with 64-bit-indexing ABI, or vise versa? I tried to deliberately misuse MKL by mixing 32-bit-indexing and 64-bit-indexing but MKL didn't fail. So does OpenBLAS. Best, Mo

