add pre-gpu version of dgemm