def _PrintCommandOutput(stdout, stderr):
  if stdout:
    stdout_clean = stdout.rstrip('\n')
    if stderr:
      print "Stdout was:\n%s" % stdout_clean
    else:
      print stdout_clean

  if stderr:
    print "Stderr was:"
    print >> sys.stderr, stderr.rstrip('\n')
Check if an object is a CUDA ndarray
dataset/ETHPy150Open ganeti/ganeti/qa/qa_utils.py/_PrintCommandOutput--crossover with--dataset/ETHPy150Open numba/numba/numba/cuda/cudadrv/devicearray.py/is_cuda_ndarray