MAGMA templates for scalable linear algebra on emerging architectures. (November 2020)