since the matrix A and the vector piv are not changed by the function. The same holds for some other functions. In contrast, the function magma_dprint and magma_dprint_gpu are defined with the const attribute. CUBLAS also uses it in the declarations.

So, why are the const attributes often missing in MAGMA? It would be helpful the have them.