mgates3 wrote:There are a few things to improve in the code.
* You allocate A twice, once with malloc and once with magma_malloc_cpu, leading to a memory leak.
* Check whether info != 0 after all LAPACK and MAGMA functions that take info.
* Verify that A, b, ipiv, A_ptr, and b_ptr are not NULL after allocating them.
* There is no need to copy A_ptr back to A after getrf, unless you need it for some other purpose.
Users browsing this forum: Bing [Bot], mgates3 and 3 guests