44 #include "control/common.h" 104 MORSE_context_t *morse;
105 MORSE_sequence_t *sequence = NULL;
106 MORSE_request_t request = MORSE_REQUEST_INITIALIZER;
109 morse = morse_context_self();
111 morse_fatal_error(
"MORSE_zhagcm_Tile",
"morse not initialized");
112 return MORSE_ERR_NOT_INITIALIZED;
114 morse_sequence_create(morse, &sequence);
124 sequence, &request );
125 morse_sequence_wait(morse, sequence);
127 status = sequence->status;
128 morse_sequence_destroy(morse, sequence);
157 int maxrank,
double tol,
158 MORSE_sequence_t *sequence,
159 MORSE_request_t *request)
161 MORSE_desc_t *
A =
AUV;
163 MORSE_context_t *morse;
165 morse = morse_context_self();
167 morse_fatal_error(
"MORSE_zhagcm_Tile",
"morse not initialized");
168 return MORSE_ERR_NOT_INITIALIZED;
170 if (sequence == NULL) {
171 morse_fatal_error(
"MORSE_zhagcm_Tile",
"NULL sequence");
172 return MORSE_ERR_UNALLOCATED;
174 if (request == NULL) {
175 morse_fatal_error(
"MORSE_zhagcm_Tile",
"NULL request");
176 return MORSE_ERR_UNALLOCATED;
179 if (sequence->status == MORSE_SUCCESS)
180 request->status = MORSE_SUCCESS;
182 return morse_request_fail(sequence, request, MORSE_ERR_SEQUENCE_FLUSHED);
185 if (morse_desc_check(
A) != MORSE_SUCCESS) {
186 morse_error(
"MORSE_zhagcm_Tile",
"invalid descriptor");
187 return morse_request_fail(sequence, request, MORSE_ERR_ILLEGAL_VALUE);
196 if (chameleon_min(
A->m,
A->n ) == 0)
197 return MORSE_SUCCESS;
210 return MORSE_SUCCESS;
void hicma_pzhagcm(MORSE_enum uplo, MORSE_desc_t *AUV, MORSE_desc_t *Ark, int numrows_matrix, int numcols_matrix, int numrows_block, int numcols_block, int maxrank, double tol, MORSE_sequence_t *sequence, MORSE_request_t *request)
int HICMA_zhagcm_Tile_Async(MORSE_enum uplo, MORSE_desc_t *AUV, MORSE_desc_t *Ark, int numrows_matrix, int numcols_matrix, int numrows_block, int numcols_block, int maxrank, double tol, MORSE_sequence_t *sequence, MORSE_request_t *request)
int HICMA_zhagcm_Tile(MORSE_enum uplo, MORSE_desc_t *AUV, MORSE_desc_t *Ark, int numrows_matrix, int numcols_matrix, int numrows_block, int numcols_block, int maxrank, double tol)