Define MORPHEUS_FAIL

MORPHEUS_FAIL(reason)

Indicates that an erroneous code path has been taken.

In host code, throws a morpheus::LogicError.

Example usage:

Copy
Copied!
            

MORPHEUS_FAIL("Non-arithmetic operation is not supported");

Parameters:
  • reason[in] String literal description of the reason

© Copyright 2023, NVIDIA. Last updated on Aug 23, 2023.