|
MAGMA
1.2.0
MatrixAlgebraonGPUandMulticoreArchitectures
|
Go to the source code of this file.
Functions | |
| 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 | MAGMA_Desc_Create (magma_desc_t **desc, void *mat, MAGMA_enum dtyp, int mb, int nb, int bsiz, int lm, int ln, int i, int j, int m, int n) |
| int | MAGMA_Desc_Destroy (magma_desc_t **desc) |
| 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.
| int MAGMA_Desc_Create | ( | magma_desc_t ** | desc, |
| void * | mat, | ||
| MAGMA_enum | dtyp, | ||
| int | mb, | ||
| int | nb, | ||
| int | bsiz, | ||
| int | lm, | ||
| int | ln, | ||
| int | i, | ||
| int | j, | ||
| int | m, | ||
| int | n | ||
| ) |
MAGMA_Desc_Create - Create matrix descriptor.
| [out] | desc | On exit, descriptor of the matrix. |
| [in] | mat | Memory location of the matrix. |
| [in] | dtyp | Data type of the matrix:
|
| [in] | mb | Number of rows in a tile. |
| [in] | nb | Number of columns in a tile. |
| [in] | bsiz | Size in bytes including padding. |
| [in] | lm | Number of rows of the entire matrix. |
| [in] | ln | Number of columns of the entire matrix. |
| [in] | i | Row index to the beginning of the submatrix. |
| [in] | j | Column indes to the beginning of the submatrix. |
| [in] | m | Number of rows of the submatrix. |
| [in] | n | Number of columns of the submatrix. |
| MAGMA_SUCCESS | successful exit |
Definition at line 211 of file descriptor.c.
References magma_context_self(), magma_desc_check(), magma_desc_init(), MAGMA_ERR_NOT_INITIALIZED, MAGMA_ERR_OUT_OF_RESOURCES, magma_error, MAGMA_SUCCESS, and morse_desc_create().
| int MAGMA_Desc_Destroy | ( | magma_desc_t ** | desc | ) |
MAGMA_Desc_Destroy - Destroys matrix descriptor.
| [in] | desc | Matrix descriptor. |
| MAGMA_SUCCESS | successful exit |
Definition at line 260 of file descriptor.c.
References magma_context_self(), MAGMA_ERR_NOT_INITIALIZED, MAGMA_ERR_UNALLOCATED, magma_error, MAGMA_SUCCESS, and morse_desc_destroy().
| 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().