Compute Graph Framework SDK Reference  5.16
NvSciHelper.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  dw
 
namespace  dw::framework
 

Macros

#define FRWK_CHECK_NVSCI_ERROR(e)
 

Functions

const char * dw::framework::nvSciGetErrorName (uint32_t error)
 
const char * dw::framework::nvSciGetEventName (uint32_t event)
 

Macro Definition Documentation

◆ FRWK_CHECK_NVSCI_ERROR

#define FRWK_CHECK_NVSCI_ERROR (   e)
Value:
{ \
NvSciError FRWK_CHECK_NVSCI_ERROR_ret{(e)}; \
if (NvSciError_Success != FRWK_CHECK_NVSCI_ERROR_ret) \
{ \
DW_LOGE << "Failed with " << dw::framework::nvSciGetErrorName(static_cast<uint32_t>(FRWK_CHECK_NVSCI_ERROR_ret)) \
<< "(" << static_cast<uint32_t>(FRWK_CHECK_NVSCI_ERROR_ret) << ")" \
<< " in " << __FILE__ \
<< ":" << __LINE__ << Logger::State::endl; \
if (NvSciError_Timeout == FRWK_CHECK_NVSCI_ERROR_ret) \
throw dw::core::ExceptionWithStatus(DW_TIME_OUT, "NvSci API Timeout"); \
else \
throw dw::core::ExceptionWithStatus(DW_INTERNAL_ERROR, "NvSci internal error occured"); \
} \
}
const char * nvSciGetErrorName(uint32_t error)

Definition at line 51 of file NvSciHelper.hpp.