|
FireSync API
|
| #define kTestCuda | ( | EXPRESSION | ) |
Used within a kTry block to conditionally jump to the first error handling block (e.g.
kCatch).
This macro provides the equivalent of kTest for Cuda runtime methods.
If the expression result is not cudaSuccess, the result of the expression is converted to a kStatus value and passed to an error-handling block. Otherwise, execution continues at the next statement.
| EXPRESSION | Expression that evaluates to a cuda runtime status value. |