Compute Graph Framework SDK Reference  5.10
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:
{ \
auto FRWK_CHECK_NVSCI_ERROR_ret = (e); \
if (FRWK_CHECK_NVSCI_ERROR_ret != NvSciError_Success) \
{ \
DW_LOGE << "Failed with " << dw::framework::nvSciGetErrorName(FRWK_CHECK_NVSCI_ERROR_ret) \
<< "(" << FRWK_CHECK_NVSCI_ERROR_ret << ")" \
<< " in " << __FILE__ \
<< ":" << __LINE__ << Logger::State::endl; \
if (FRWK_CHECK_NVSCI_ERROR_ret == NvSciError_Timeout) \
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.