libflame icon indicating copy to clipboard operation
libflame copied to clipboard

Seg Fault in test_libflame.x when using libblis as BLAS library with libflame

Open kvaragan opened this issue 9 years ago • 0 comments

I am using fortran interfaces, I am checking Cholesky factorization performance. one thing I noticed when debugging seg fault in test_libflame.x application. The pointer to int (4bytes) is type-casted to f77_int* (int64_t* - 8 bytes) in blis library - This eventually results in crash. For more details: check the function bl1_sscal(int n, float* alpha, float* x, int incx ) in bl1_scal.c file. Here the blis interface will be called through F77_sscal( &n, alpha, x, &incx). This function in blis library defined as:

void sscal( f77_int* n, float* alpha, float* x, ff7_int* incx) in file bla_scal.c Here f77_int is defined as int64_t. As a result the value of n will be a wrong value. This will result in a crash at times.

Please note BLIS_BLAS2BLIS_INT_TYPE_SIZE = 64. Am I right here ?

kvaragan avatar Mar 22 '16 07:03 kvaragan