Add missing const to parameter.
Fix crash when calling a kernel with 0 element.
allow empty gemm output to work.
Add const to parameter
Return an error instead of bad value in one case of shape with 0.

I suspect a cublas_sgemv error!