clSPARSE  v0.10.0.0
a software library containing Sparse functions written in OpenCL
Public Attributes | List of all members
clsparseScalar Struct Reference

Structure to encapsulate scalar data to clSPARSE API. More...

#include <clSPARSE-1x.h>

Public Attributes

cl_mem value
 
clsparseIdx_t off_value
 
void * value
 

Detailed Description

Structure to encapsulate scalar data to clSPARSE API.

Examples:
sample-axpy.cpp, sample-norm1-c.c, and sample-spmv.cpp.

Member Data Documentation

clsparseIdx_t clsparseScalar::off_value

Given that cl_mem objects are opaque without pointer arithmetic, this offset is added to the cl_mem locations on device to define beginning of the data in the cl_mem buffers

void* clsparseScalar::value

OpenCL 2.0 memory pointer

cl_mem clsparseScalar::value

OpenCL 1.x memory handle

Examples:
sample-axpy.cpp, sample-norm1-c.c, and sample-spmv.cpp.

The documentation for this struct was generated from the following files: