Do more. Code less. Free software for GPU computing.
<scroll to top>
Defines | Functions

sparse.h File Reference

#include "cusparse.h"
#include <af/array.h>
#include "af/exception.h"

Go to the source code of this file.

Defines

#define CUSPARSE_(call)
#define CUSPARSE(call)   CUSPARSE_(call)
#define CUSPARSE_THROW(call)

Functions

afError af_cusparse_handle (cusparseHandle_t *)
afError af_cusparse_mat (cusparseMatDescr_t *)
af::array sparse_mul_core (const af::array &A, const af::array &B)
af::array sparse_transpose (af::array &in)
const char * cusparseGetErrorString (cusparseStatus_t)

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 *  )
af::array sparse_mul_core ( const af::array A,
const af::array B 
)
af::array sparse_transpose ( af::array in)
const char* cusparseGetErrorString ( cusparseStatus_t  )
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines