-3

I use LAPACK and BLAS to make matrix computations. I cannot perform a gemm with certain matrices and get segmentation faults that i can't fix.

For example, i can multiply two 4500x4500 matrices together but I get a segmentation fault when i try to multiply a 64x4500 matrix with a 4500x4500 matrix. Now when i try to run the product of a 64x4500 matrix with a 4500x4500 matrix with a debugger, the computations goes all the way and no error occurs.

I get the same result with LAPACK and OpenBLAS with any number of threads. I tried to rebuild LAPACK, OpenBLAS and my project but nothing change. I have a MacBook Air with 8 cores and a CPU M2.

I have no clue, can someone help please ?

thomidani
  • 1
  • 2
  • 3
    This question's shown code (absolutely nothing) fails to meet Stackoverflow's requirements for showing a [mre]. Because of that it's unlikely that anyone here can conclusively answer the question; but only guess at the most. You need to [edit] your question to show a minimal example, no more than one or two pages of code (the "minimal" part), that everyone else can cut/paste ***exactly as shown***, compile, run, and reproduce the described issue (the "reproducible" part, this includes any ancillary information, like any input to the program). See [ask] for more information. – Sam Varshavchik Aug 30 '23 at 15:59
  • Double check that you have allocated enough memory for the matrices involved. Double check that your integer types are the correct sizes for the interface. – James Tursa Aug 31 '23 at 01:54

0 Answers0