背景
DOCA: Data Center-on-a-Chip Architecture,片上数据中心架构。是NVIDIA针对DPU的软件框架。DOCA之于DPU,就相当于CUDA之于GPU。本文介绍的是DOCA SDK中的DOCA定义的错误类型以及他的2个接口和常用使用模板。
DOCA错误类型
一些关键常见错误:
- DOCA_ERROR_NOT_PERMITTED
- DOCA_ERROR_NO_MEMORY
- DOCA_ERROR_TIME_OUT
- DOCA_ERROR_NOT_CONNECTED
- DOCA_ERROR_AUTHENTICATION
typedef enum doca_error {
DOCA_SUCCESS = 0, /**< Success */
DOCA_ERROR_UNKNOWN = 1, /**< Unknown error */
DOCA_ERROR_NOT_PERMITTED = 2, /**< Operation not permitted */
DOCA_ERROR_IN_USE = 3, /**< Resource already in use */
DOCA_ERROR_NOT_SUPPORTED = 4, /**< Operation not supported */
DOCA_ERROR_AGAIN = 5, /**< Resource temporarily unavailable, try again */
DOCA_ERROR_INVALID_VALUE = 6, /**< Invalid input */
DOCA_ERROR_NO_MEMORY = 7, /**< Memory allocation failure */
DOCA_ERROR_INITIALIZATION = 8, /**< Resource initialization failure */
DOCA_ERROR_TIME_OUT = 9, /**< Timer expired waiting for resource */
DOCA_ERROR_SHUTDOWN = 10, /**< Shut down in process or completed */
DOCA_ERRO

最低0.47元/天 解锁文章
1382

被折叠的 条评论
为什么被折叠?



