cuda test for matrix-vector multiplication