code: func (ctx *BatchedContext) checkResults() bool {
  	for _, v := range ctx.results {
  		if v != C.CUDA_SUCCESS {
  			return true
  		}
  	}
  	return false
  }
docs: /* PRIVATE METHODS */
  // checkResults returns true if an error has occured while processing the queue