|
MAGMA
1.2.0
MatrixAlgebraonGPUandMulticoreArchitectures
|
Go to the source code of this file.
Macros | |
| #define | BLKLDD(A, k) ( ( (k) + (A)->desc.i/(A)->desc.mb) < (A)->desc.lm1 ? (A)->desc.mb : (A)->desc.lm%(A)->desc.mb ) |
Functions | |
| static void * | magma_geteltaddr (const magma_desc_t *A, int m, int n, int eltsize) |
| static void * | magma_getaddr (magma_desc_t *A, int m, int n) |
| magma_desc_t | magma_desc_init (MAGMA_enum dtyp, int mb, int nb, int bsiz, int lm, int ln, int i, int j, int m, int n) |
| magma_desc_t | magma_desc_submatrix (magma_desc_t descA, int i, int j, int m, int n) |
| int | magma_desc_check (magma_desc_t *desc) |
| int | magma_desc_mat_alloc (magma_desc_t *desc) |
| int | magma_desc_mat_free (magma_desc_t *desc) |
| int | plasma_element_size (int type) |
MAGMA auxiliary routines MAGMA is a software package provided by Univ. of Tennessee, Univ. of California Berkeley and Univ. of Colorado Denver
Definition in file descriptor.h.
| #define BLKLDD | ( | A, | |
| k | |||
| ) | ( ( (k) + (A)->desc.i/(A)->desc.mb) < (A)->desc.lm1 ? (A)->desc.mb : (A)->desc.lm%(A)->desc.mb ) |
Definition at line 35 of file descriptor.h.
| int magma_desc_check | ( | magma_desc_t * | desc | ) |
Check for descriptor correctness
Definition at line 88 of file descriptor.c.
References magma_desc_s::desc, MAGMA_ERR_ILLEGAL_VALUE, MAGMA_ERR_UNALLOCATED, magma_error, and MAGMA_SUCCESS.
| magma_desc_t magma_desc_init | ( | MAGMA_enum | dtyp, |
| int | mb, | ||
| int | nb, | ||
| int | bsiz, | ||
| int | lm, | ||
| int | ln, | ||
| int | i, | ||
| int | j, | ||
| int | m, | ||
| int | n | ||
| ) |
Internal static descriptor initializer
Definition at line 20 of file descriptor.c.
References magma_desc_s::desc, morse_desc_init(), and magma_desc_s::occurences.
| int magma_desc_mat_alloc | ( | magma_desc_t * | desc | ) |
Definition at line 127 of file descriptor.c.
References magma_desc_s::desc, MAGMA_ERR_OUT_OF_RESOURCES, magma_error, MAGMA_SUCCESS, morse_desc_create(), and plasma_element_size().
| int magma_desc_mat_free | ( | magma_desc_t * | desc | ) |
Definition at line 145 of file descriptor.c.
References magma_desc_s::desc, MAGMA_SUCCESS, and morse_desc_destroy().
| magma_desc_t magma_desc_submatrix | ( | magma_desc_t | descA, |
| int | i, | ||
| int | j, | ||
| int | m, | ||
| int | n | ||
| ) |
Internal static descriptor initializer for submatrices
Definition at line 62 of file descriptor.c.
References magma_desc_s::desc, and morse_desc_submatrix().
|
inlinestatic |
Internal function to return adress of block (m,n)
Definition at line 40 of file descriptor.h.
References A, magma_desc_s::desc, and plasma_element_size().
|
inlinestatic |
Internal routines
Internal function to return adress of element A(m,n)
Definition at line 67 of file descriptor.h.
References A, and magma_desc_s::desc.
| int plasma_element_size | ( | int | type | ) |