PLASMA  2.4.5
PLASMA - Parallel Linear Algebra for Scalable Multi-core Architectures
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
ctile.c
Go to the documentation of this file.
1 
16 #include "common.h"
17 #include "auxiliary.h"
18 #include "tile.h"
19 
20 /***************************************************************************/
56 {
57  PLASMA_desc descA = *A;
59  PLASMA_sequence *sequence = NULL;
60  PLASMA_request request;
61  int status;
62 
63  plasma = plasma_context_self();
64  if (plasma == NULL) {
65  plasma_fatal_error("PLASMA_cLapack_to_Tile", "PLASMA not initialized");
67  }
68  /* Check descriptor for correctness */
69  if (plasma_desc_check(&descA) != PLASMA_SUCCESS) {
70  plasma_error("PLASMA_cLapack_to_Tile", "invalid descriptor");
72  }
73  plasma_sequence_create(plasma, &sequence);
76  PLASMA_Complex32_t*, Af77,
77  int, LDA,
78  PLASMA_desc, descA,
79  PLASMA_sequence*, sequence,
80  PLASMA_request*, &request);
82  status = sequence->status;
83  plasma_sequence_destroy(plasma, sequence);
84  return status;
85 }
86 
87 /***************************************************************************/
129  PLASMA_sequence *sequence, PLASMA_request *request)
130 {
131  PLASMA_desc descA = *A;
133 
134  plasma = plasma_context_self();
135  if (plasma == NULL) {
136  plasma_fatal_error("PLASMA_cLapack_to_Tile", "PLASMA not initialized");
138  }
139  /* Check descriptor for correctness */
140  if (plasma_desc_check(&descA) != PLASMA_SUCCESS) {
141  plasma_error("PLASMA_cLapack_to_Tile", "invalid descriptor");
143  }
144 
147  PLASMA_Complex32_t*, Af77,
148  int, LDA,
149  PLASMA_desc, descA,
150  PLASMA_sequence*, sequence,
151  PLASMA_request*, request);
152 
153  return PLASMA_SUCCESS;
154 }
155 
156 /***************************************************************************/
192 {
193  PLASMA_desc descA = *A;
195  PLASMA_sequence *sequence = NULL;
196  PLASMA_request request;
197  int status;
198 
199  plasma = plasma_context_self();
200  if (plasma == NULL) {
201  plasma_fatal_error("PLASMA_cTile_to_Lapack", "PLASMA not initialized");
203  }
204  /* Check descriptor for correctness */
205  if (plasma_desc_check(&descA) != PLASMA_SUCCESS) {
206  plasma_error("PLASMA_cTile_to_Lapack", "invalid descriptor");
208  }
209  plasma_sequence_create(plasma, &sequence);
212  PLASMA_desc, descA,
213  PLASMA_Complex32_t*, Af77,
214  int, LDA,
215  PLASMA_sequence*, sequence,
216  PLASMA_request*, &request);
218  status = sequence->status;
219  plasma_sequence_destroy(plasma, sequence);
220  return status;
221 }
222 
223 /***************************************************************************/
265  PLASMA_sequence *sequence, PLASMA_request *request)
266 {
267  PLASMA_desc descA = *A;
269 
270  plasma = plasma_context_self();
271  if (plasma == NULL) {
272  plasma_fatal_error("PLASMA_cTile_to_Lapack", "PLASMA not initialized");
274  }
275  /* Check descriptor for correctness */
276  if (plasma_desc_check(&descA) != PLASMA_SUCCESS) {
277  plasma_error("PLASMA_cTile_to_Lapack", "invalid descriptor");
279  }
280 
283  PLASMA_desc, descA,
284  PLASMA_Complex32_t*, Af77,
285  int, LDA,
286  PLASMA_sequence*, sequence,
287  PLASMA_request*, request);
288 
289  return PLASMA_SUCCESS;
290 }