Open FuncJ opened 1 year ago
If you are using the FLASH interface to libflame, you're probably better off using FLASH_LU_incpiv(). It provides a pivoted LU decomposition more suitable to an algorithms-by-blocks approach like SuperMatrix/FLASH.
There's an example for its use to be found here: src/lapack/dec/lu/incpiv/front/flamec/test/flash_sm
Thanks, I'll try it. What can I do to utilize the function 'FLASH_LU_piv' correctly?
See starting here: https://github.com/flame/libflame/blob/d48aa5d42525b0b8d077336763e70e669365b727/src/lapack/dec/lu/incpiv/front/flamec/test/flash_sm/time_LU_incpiv.c#L37 in the test case quoted above. AFAIK the use of the helper functions for creation of hierarchical matrices is strongly advised.
Thanks, It is my fault for misunderstanding the function 'FLASH_LU_piv' usage. Not only the matrix 'A_FLASH' should be a hierarchical object, but also the matrix 'IPIV'.
Hi, I want to utilize the function 'FLASH_lu_piv' to perform a LU factorization. But I have met a NULL pointer error. This error could be my mistake for misunderstanding the usage of the function.
int main( void ) { // matrix parameters: A, column major int N; // test parameters int N_START, N_END, INC, REPEAT;
}
gcc -o flame.x flame.c -I /home/xx/lib/libflame/include/ /home/xx/project/libflame/lib/x86_64-unknown-linux-gnu/libflame.a /home/xx/lib/openblas/lib/libopenblas.a -fopenmp -lpthread -lm