Fréchet View  1.6.0
A Tool for Exploring Fréchet Distance Algorithms
ocl_prototype.cpp File Reference
#include <clm4rm/ocl_prototype.h>
#include <m4ri/graycode.h>
#include <assert.h>
#include <gtest/gtest.h>
#include <omp.h>
#include <atomic>

Go to the source code of this file.

Functions

int nblocks (mzd_t const *A)
 
int adjust_k (int k, rci_t A_nrows)
 
bool assertEquals (const mzd_t *M, const gpuword *G, int padded_rows)
 
mzd_t * proto_bool_mul_m4rm (mzd_t *Cm, mzd_t const *Am, mzd_t const *Bm, int k)
 
gpuword proto_read_bits (gpuword a0, gpuword a1, int spot, int n)
 
void swap (gpuword **A, gpuword **B)
 
gpuword combinate (gpuword x, gpuword *T)
 
void proto_mul_m4rm_block (gpuword *C, const gpuword *A, const gpuword *B, int k, int A_nrows, int A_ncols, int B_ncols, int r0, int r1)
 
void proto_mul_m4rm (gpuword *C, const gpuword *A, const gpuword *B, int k, int A_nrows, int A_ncols, int B_ncols)
 
mzd_t * proto_bool_mul_cubic (mzd_t *Cm, mzd_t const *Am, mzd_t const *Bm, int)
 
void proto_mul_cubic (gpuword *C, const gpuword *A, const gpuword *B, int A_nrows, int A_ncols, int B_ncols)
 

Function Documentation

◆ adjust_k()

int adjust_k ( int  k,
rci_t  A_nrows 
)

Definition at line 25 of file ocl_prototype.cpp.

◆ assertEquals()

bool assertEquals ( const mzd_t *  M,
const gpuword G,
int  padded_rows 
)

Definition at line 52 of file ocl_prototype.cpp.

◆ combinate()

gpuword combinate ( gpuword  x,
gpuword T 
)

Definition at line 290 of file ocl_prototype.cpp.

◆ nblocks()

int nblocks ( mzd_t const *  A)

Definition at line 20 of file ocl_prototype.cpp.

◆ proto_bool_mul_cubic()

mzd_t* proto_bool_mul_cubic ( mzd_t *  Cm,
mzd_t const *  Am,
mzd_t const *  Bm,
int   
)

Definition at line 500 of file ocl_prototype.cpp.

◆ proto_bool_mul_m4rm()

mzd_t* proto_bool_mul_m4rm ( mzd_t *  Cm,
mzd_t const *  Am,
mzd_t const *  Bm,
int  k 
)

Definition at line 71 of file ocl_prototype.cpp.

◆ proto_mul_cubic()

void proto_mul_cubic ( gpuword C,
const gpuword A,
const gpuword B,
int  A_nrows,
int  A_ncols,
int  B_ncols 
)

Definition at line 545 of file ocl_prototype.cpp.

◆ proto_mul_m4rm()

void proto_mul_m4rm ( gpuword C,
const gpuword A,
const gpuword B,
int  k,
int  A_nrows,
int  A_ncols,
int  B_ncols 
)

iterates over words of C

Definition at line 339 of file ocl_prototype.cpp.

◆ proto_mul_m4rm_block()

void proto_mul_m4rm_block ( gpuword C,
const gpuword A,
const gpuword B,
int  k,
int  A_nrows,
int  A_ncols,
int  B_ncols,
int  r0,
int  r1 
)

Definition at line 357 of file ocl_prototype.cpp.

◆ proto_read_bits()

gpuword proto_read_bits ( gpuword  a0,
gpuword  a1,
int  spot,
int  n 
)

Definition at line 273 of file ocl_prototype.cpp.

◆ swap()

void swap ( gpuword **  A,
gpuword **  B 
)

Definition at line 284 of file ocl_prototype.cpp.