Fréchet View  1.6.0
A Tool for Exploring Fréchet Distance Algorithms
clmatrix_t Struct Reference

Detailed Description

OpenCL boolean matrix data structure. Data is arranged in 32 bit words.

Words are stored in column-major order (as to optimise GPU memory access patterns).

Keeps two copies of matrix data: one in CPU memory and one in GPU memory. Methods are provided to move data back and forth.

Definition at line 98 of file clm4rm.h.

#include <clm4rm.h>

Public Attributes

rci_t nrows
 Number of rows. More...
 
rci_t padded_rows
 Number of rows padded to a multiple of 32. More...
 
rci_t ncols
 Number of columns. More...
 
rci_t padded_cols
 Number of columns padded to a multiple of 64. More...
 
rci_t width
 Number of words with valid bits: width = ceil(ncols / m4ri_radix) */. More...
 
gpuwordlocal_data
 matrix data in CPU memory More...
 
cl_mem data
 handle to GPU data (32-bit unsigned integers) More...
 

Member Data Documentation

◆ data

cl_mem clmatrix_t::data

handle to GPU data (32-bit unsigned integers)

Definition at line 114 of file clm4rm.h.

◆ local_data

gpuword* clmatrix_t::local_data

matrix data in CPU memory

Definition at line 113 of file clm4rm.h.

◆ ncols

rci_t clmatrix_t::ncols

Number of columns.

Definition at line 101 of file clm4rm.h.

◆ nrows

rci_t clmatrix_t::nrows

Number of rows.

Definition at line 99 of file clm4rm.h.

◆ padded_cols

rci_t clmatrix_t::padded_cols

Number of columns padded to a multiple of 64.

Definition at line 102 of file clm4rm.h.

◆ padded_rows

rci_t clmatrix_t::padded_rows

Number of rows padded to a multiple of 32.

Definition at line 100 of file clm4rm.h.

◆ width

rci_t clmatrix_t::width

Number of words with valid bits: width = ceil(ncols / m4ri_radix) */.

Definition at line 103 of file clm4rm.h.


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