|
graph
|
A CSR matrix backed by CUDA Unified Memory. More...
#include <gpu_csr.hpp>

Public Member Functions | |
| GPUCSR () | |
| empty CSR More... | |
| PANGOLIN_CUDA_MEMBER uint64_t | nnz () const |
| number of non-zeros More... | |
| uint64_t | num_nodes () const |
| number of unique row/col indices More... | |
| PANGOLIN_CUDA_MEMBER uint64_t | num_rows () const |
| number of matrix rows More... | |
| PANGOLIN_CUDA_MEMBER uint64_t | max_col () const |
| number of matrix columns More... | |
| GPUCSRView< Index > | view () const |
| create a GPUCSRView for this GPUCSR More... | |
| const Index * | deviceRowPtr () |
| row offset array, valid on device More... | |
| const Index * | deviceColInd () |
| column index array, valid on device More... | |
Static Public Member Functions | |
| static GPUCSR< Index > | from_edgelist (const EdgeList &es, bool(*edgeFilter)(const Edge &)=nullptr) |
Public Attributes | |
| Vector< Index > | rowOffset_ |
| offset in col_ that each row starts at More... | |
| Vector< Index > | col_ |
| non-zero column indices More... | |
Private Attributes | |
| Index | maxCol_ |
A CSR matrix backed by CUDA Unified Memory.
Copying to a GPU kernel by value will cause the underling memory to be copied as well. For read-only GPU access, use the view() method to get a lightweight reference to the CSR data.
|
inline |
column index array, valid on device
|
inline |
row offset array, valid on device
|
static |
Build a GPUCSR from an EdgeList
Do not include edges where edgeFilter(edge) returns true
|
inline |
number of matrix columns
|
inline |
number of non-zeros
| uint64_t GPUCSR< Index >::num_nodes | ( | ) | const |
number of unique row/col indices
| PANGOLIN_CUDA_MEMBER uint64_t GPUCSR< Index >::num_rows | ( | ) | const |
number of matrix rows
| GPUCSRView< Index > GPUCSR< Index >::view | ( | ) | const |
create a GPUCSRView for this GPUCSR
| Vector<Index> GPUCSR< Index >::col_ |
non-zero column indices
|
private |
| Vector<Index> GPUCSR< Index >::rowOffset_ |
offset in col_ that each row starts at
1.8.13