|
MAGMA
1.2.0
MatrixAlgebraonGPUandMulticoreArchitectures
|
#include "common.h"Go to the source code of this file.
Functions | |
| int | MAGMA_zplrnt (int M, int N, PLASMA_Complex64_t *A, int LDA, unsigned long long int seed) |
| int | MAGMA_zplrnt_Tile (magma_desc_t *A, unsigned long long int seed) |
| int | MAGMA_zplrnt_Tile_Async (magma_desc_t *A, unsigned long long int seed, magma_sequence_t *sequence, magma_request_t *request) |
MAGMA compute MAGMA is a software package provided by Univ. of Tennessee, Univ. of California Berkeley and Univ. of Colorado Denver, and INRIA Bordeaux Sud-Ouest
Definition in file zplrnt.c.
| int MAGMA_zplrnt | ( | int | M, |
| int | N, | ||
| PLASMA_Complex64_t * | A, | ||
| int | LDA, | ||
| unsigned long long int | seed | ||
| ) |
MAGMA_zplrnt - Generate a random matrix by tiles.
| [in] | M | The number of rows of A. |
| [in] | N | The order of the matrix A. N >= 0. |
| [out] | A | On exit, The random matrix A generated. |
| [in] | LDA | The leading dimension of the array A. LDA >= max(1,M). |
| [in] | seed | The seed used in the random generation. |
| MAGMA_SUCCESS | successful exit |
| <0 | if -i, the i-th argument had an illegal value |
Definition at line 58 of file zplrnt.c.
References magma_context_self(), magma_desc_mat_free(), MAGMA_ERR_NOT_INITIALIZED, magma_error, magma_fatal_error, MAGMA_NB, MAGMA_REQUEST_INITIALIZER, magma_sequence_create(), magma_sequence_destroy(), MAGMA_SUCCESS, magma_zdesc_alloc, magma_zooptile2lap, MAGMA_zplrnt_Tile_Async(), max, min, morse_barrier(), and magma_sequence_s::status.
| int MAGMA_zplrnt_Tile | ( | magma_desc_t * | A, |
| unsigned long long int | seed | ||
| ) |
MAGMA_zplrnt_Tile - Generate a random matrix by tiles. Tile equivalent of MAGMA_zplrnt(). Operates on matrices stored by tiles. All matrices are passed through descriptors. All dimensions are taken from the descriptors.
| [in] | A | On exit, The random matrix A generated. |
| [in] | seed | The seed used in the random generation. |
| MAGMA_SUCCESS | successful exit |
Definition at line 152 of file zplrnt.c.
References magma_context_self(), MAGMA_ERR_NOT_INITIALIZED, magma_fatal_error, MAGMA_REQUEST_INITIALIZER, magma_sequence_create(), magma_sequence_destroy(), MAGMA_zplrnt_Tile_Async(), morse_barrier(), morse_desc_getoncpu, and magma_sequence_s::status.
| int MAGMA_zplrnt_Tile_Async | ( | magma_desc_t * | A, |
| unsigned long long int | seed, | ||
| magma_sequence_t * | sequence, | ||
| magma_request_t * | request | ||
| ) |
MAGMA_zplrnt_Tile_Async - Generate a random matrix by tiles. Non-blocking equivalent of MAGMA_zplrnt_Tile(). May return before the computation is finished. Allows for pipelining of operations ar runtime.
| [in] | sequence | Identifies the sequence of function calls that this call belongs to (for completion checks and exception handling purposes). |
| [out] | request | Identifies this function call (for exception handling purposes). |
Definition at line 203 of file zplrnt.c.
References magma_desc_s::desc, magma_context_self(), magma_desc_check(), MAGMA_ERR_ILLEGAL_VALUE, MAGMA_ERR_NOT_INITIALIZED, MAGMA_ERR_SEQUENCE_FLUSHED, MAGMA_ERR_UNALLOCATED, magma_error, magma_fatal_error, magma_pzplrnt(), magma_request_fail(), MAGMA_SUCCESS, min, magma_request_s::status, and magma_sequence_s::status.