#include "cusparse.h"
#include <af/array.h>
#include "af/exception.h"
Go to the source code of this file.
Define Documentation
#define CUSPARSE_ |
( |
|
call | ) |
|
Value:do { \
cusparseStatus_t _e; \
if ((_e=(call)) == CUSPARSE_STATUS_SUCCESS) break; \
MSG("CUSPARSE runtime error: %s", cusparseGetErrorString(_e)); \
return af_err(AF_ERR_EXTERN, "Cusparse failure"); \
} while (0)
#define CUSPARSE |
( |
|
call | ) |
CUSPARSE_(call) |
#define CUSPARSE_THROW |
( |
|
call | ) |
|
Value:do { \
cusparseStatus_t _e; \
if ((_e=(call)) == CUSPARSE_STATUS_SUCCESS) break; \
MSG("CUSPARSE runtime error: %s", cusparseGetErrorString(_e)); \
afError e = af_err(AF_ERR_EXTERN, "Cusparse failure"); \
AF_THROW(e); \
} while (0)
Function Documentation
afError af_cusparse_handle |
( |
cusparseHandle_t * |
| ) |
|
afError af_cusparse_mat |
( |
cusparseMatDescr_t * |
| ) |
|
const char* cusparseGetErrorString |
( |
cusparseStatus_t |
| ) |
|