draft of cusparseCheckStatus. untested