code: func (ctx *BatchedContext) FirstError() error {
  	for i, v := range ctx.results {
  		if cuResult(v) != Success {
  			return result(v)
  		}
  		ctx.results[i] = C.CUDA_SUCCESS
  	}
  	return nil
  }
docs: // FirstError returns the first error if there was any