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 ?