graph
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Public Attributes | Private Attributes | Friends | List of all members
GPUCSRView< Index > Class Template Reference

a read-only view of a GPUCSRm suitable for passing to a GPU kernel by value. More...

#include <gpu_csr.hpp>

Collaboration diagram for GPUCSRView< Index >:
Collaboration graph
[legend]

Public Member Functions

PANGOLIN_CUDA_MEMBER uint64_t nnz () const
 
PANGOLIN_CUDA_MEMBER uint64_t num_rows () const
 
PANGOLIN_CUDA_MEMBER uint64_t max_col () const
 largest observed column during construction of CSR More...
 
const Index * deviceRowPtr ()
 rowPtr index valid on device More...
 
const Index * deviceColInd ()
 colInd array valid on device More...
 

Public Attributes

const Index * rowOffset_
 offset in col_ that each row starts at More...
 
const Index * col_
 non-zero column indices More...
 

Private Attributes

uint64_t nnz_
 number of non-zeros More...
 
uint64_t num_rows_
 length of rowOffset - 1 More...
 
Index maxCol_
 largest observed column during constructiono of CSR More...
 

Friends

class GPUCSR< Index >
 

Detailed Description

template<typename Index>
class GPUCSRView< Index >

a read-only view of a GPUCSRm suitable for passing to a GPU kernel by value.

Any modifications to the underlying GPUCSR may invalidate this view.

Member Function Documentation

◆ deviceColInd()

template<typename Index>
const Index* GPUCSRView< Index >::deviceColInd ( )
inline

colInd array valid on device

◆ deviceRowPtr()

template<typename Index>
const Index* GPUCSRView< Index >::deviceRowPtr ( )
inline

rowPtr index valid on device

◆ max_col()

template<typename Index>
PANGOLIN_CUDA_MEMBER uint64_t GPUCSRView< Index >::max_col ( ) const
inline

largest observed column during construction of CSR

◆ nnz()

template<typename Index>
PANGOLIN_CUDA_MEMBER uint64_t GPUCSRView< Index >::nnz ( ) const
inline

◆ num_rows()

template<typename Index>
PANGOLIN_CUDA_MEMBER uint64_t GPUCSRView< Index >::num_rows ( ) const
inline

Friends And Related Function Documentation

◆ GPUCSR< Index >

template<typename Index>
friend class GPUCSR< Index >
friend

Member Data Documentation

◆ col_

template<typename Index>
const Index* GPUCSRView< Index >::col_

non-zero column indices

◆ maxCol_

template<typename Index>
Index GPUCSRView< Index >::maxCol_
private

largest observed column during constructiono of CSR

◆ nnz_

template<typename Index>
uint64_t GPUCSRView< Index >::nnz_
private

number of non-zeros

◆ num_rows_

template<typename Index>
uint64_t GPUCSRView< Index >::num_rows_
private

length of rowOffset - 1

◆ rowOffset_

template<typename Index>
const Index* GPUCSRView< Index >::rowOffset_

offset in col_ that each row starts at


The documentation for this class was generated from the following file: