Skip to content
  • Kenneth Moreland's avatar
    Check error codes from CUDA functions · 55c159d6
    Kenneth Moreland authored
    Most functions in the CUDA runtime API return an error code that must be
    checked to determine whether the operation completed successfully. Most
    operations in VTK-m just called the function and assumed it completed
    correctly, which could lead to further errors. This change wraps most
    CUDA calls in a VTKM_CUDA_CALL macro that checks the error code and
    throws an exception if the call fails.
    55c159d6