Numerical linear algebra on emerging architectures: The PLASMA and MAGMA projects