Trying to eliminates casts for malloc in cuda_matrix_dot to see if it helps