Go to the source code of this file.
|
__kernel void | clm4rm_and (write_only_global C, read_only_global A, read_only_global B) |
| OpenCL kernel for bitwise AND on three matrixes C := A & B. More...
|
|
__kernel void | clm4rm_or (write_only_global C, read_only_global A, read_only_global B) |
| OpenCL kernel for bitwise OR on three matrixes C := A | B. More...
|
|
__kernel void | clm4rm_copy (__global unsigned int *C, int C_rowstride, __global unsigned int *B, int B_rowstride, int offset) |
| copy with offset More...
|
|
__kernel void | clm4rm_query_diagonal (read_only_global M, int M_nrows, volatile __global int *result) |
| Query Matrix Diagonal. More...
|
|
◆ B_nrows
◆ C_nrows
◆ read
#define read |
( |
|
M, |
|
|
|
row, |
|
|
|
col |
|
) |
| M[(col)*M ## _nrows + row] |
◆ read_only_global
#define read_only_global __global gpuword* |
◆ write
#define write |
( |
|
M, |
|
|
|
row, |
|
|
|
col, |
|
|
|
x |
|
) |
| M[(col)*M ## _nrows + row]=x |
◆ WRITE_ATOMIC
◆ write_only_global
#define write_only_global __global gpuword* |
◆ gpuword
◆ clm4rm_and()
OpenCL kernel for bitwise AND on three matrixes C := A & B.
- Parameters
-
C | destination matrix |
A | source matrix |
B | source matrix |
Definition at line 35 of file clm4rm_bitwise.cl.
◆ clm4rm_copy()
__kernel void clm4rm_copy |
( |
__global unsigned int * |
C, |
|
|
int |
C_rowstride, |
|
|
__global unsigned int * |
B, |
|
|
int |
B_rowstride, |
|
|
int |
offset |
|
) |
| |
copy with offset
- Deprecated:
- (only needed for concat/stack with __global buffers not needed for Image2D).
C += B >> x
Definition at line 84 of file clm4rm_bitwise.cl.
◆ clm4rm_or()
OpenCL kernel for bitwise OR on three matrixes C := A | B.
- Parameters
-
C | destination matrix |
A | source matrix |
B | source matrix |
Definition at line 60 of file clm4rm_bitwise.cl.
◆ clm4rm_query_diagonal()
__kernel void clm4rm_query_diagonal |
( |
read_only_global |
M, |
|
|
int |
M_nrows, |
|
|
volatile __global int * |
result |
|
) |
| |
Query Matrix Diagonal.
- Parameters
-
M | a square matrix |
M_nrows | number of rows and columns in M |
result | holds on return a row/column index with a 1 on the diagonal; -1 if the diagonal is empty |
Definition at line 117 of file clm4rm_bitwise.cl.