PaStiX Handbook  6.3.1
pastix_dcores.h
Go to the documentation of this file.
1 /**
2  * @file pastix_dcores.h
3  *
4  * PaStiX kernel header.
5  *
6  * @copyright 2011-2023 Bordeaux INP, CNRS (LaBRI UMR 5800), Inria,
7  * Univ. Bordeaux. All rights reserved.
8  *
9  * @version 6.3.1
10  * @author Mathieu Faverge
11  * @author Pierre Ramet
12  * @author Xavier Lacoste
13  * @author Esragul Korkmaz
14  * @author Gregoire Pichon
15  * @author Tony Delarue
16  * @author Alycia Lisito
17  * @author Nolan Bredel
18  * @date 2023-11-07
19  * @generated from /builds/solverstack/pastix/kernels/pastix_zcores.h, normal z -> d, Thu Nov 23 09:55:34 2023
20  *
21  */
22 #ifndef _pastix_dcores_h_
23 #define _pastix_dcores_h_
24 
25 #ifndef DOXYGEN_SHOULD_SKIP_THIS
26 #define pastix_cblk_lock( cblk_ ) pastix_atomic_lock( &((cblk_)->lock) )
27 #define pastix_cblk_unlock( cblk_ ) pastix_atomic_unlock( &((cblk_)->lock) )
28 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
29 
30 /**
31  * @addtogroup kernel_blas_lapack
32  * @{
33  * This module contains all the BLAS and LAPACK-like kernels that are working
34  * on lapack layout matrices.
35  *
36  * @name PastixDouble BLAS kernels
37  * @{
38  */
39 void core_dplrnt( int m,
40  int n,
41  double *A,
42  int lda,
43  int gM,
44  int m0,
45  int n0,
46  unsigned long long int seed );
47 void core_dgetmo( int m,
48  int n,
49  const double *A,
50  int lda,
51  double *B,
52  int ldb );
53 int core_dgeadd( pastix_trans_t trans,
54  pastix_int_t M,
55  pastix_int_t N,
56  double alpha,
57  const double *A,
58  pastix_int_t LDA,
59  double beta,
60  double *B,
61  pastix_int_t LDB );
62 int core_dgemdm( pastix_trans_t transA,
63  pastix_trans_t transB,
64  int M,
65  int N,
66  int K,
67  double alpha,
68  const double *A,
69  int LDA,
70  const double *B,
71  int LDB,
72  double beta,
73  double *C,
74  int LDC,
75  const double *D,
76  int incD,
77  double *WORK,
78  int LWORK );
79 int core_dpqrcp( double tol,
80  pastix_int_t maxrank,
81  int full_update,
82  pastix_int_t nb,
83  pastix_int_t m,
84  pastix_int_t n,
85  double *A,
86  pastix_int_t lda,
87  pastix_int_t *jpvt,
88  double *tau,
89  double *work,
90  pastix_int_t lwork,
91  double *rwork );
92 int core_drqrcp( double tol,
93  pastix_int_t maxrank,
94  int refine,
95  pastix_int_t nb,
96  pastix_int_t m,
97  pastix_int_t n,
98  double *A,
99  pastix_int_t lda,
100  pastix_int_t *jpvt,
101  double *tau,
102  double *work,
103  pastix_int_t lwork,
104  double *rwork );
105 int core_drqrrt( double tol,
106  pastix_int_t maxrank,
107  pastix_int_t nb,
108  pastix_int_t m,
109  pastix_int_t n,
110  double *A,
111  pastix_int_t lda,
112  double *tau,
113  double *B,
114  pastix_int_t ldb,
115  double *tau_b,
116  double *work,
117  pastix_int_t lwork,
118  double normA );
119 int core_dtqrcp( double tol,
120  pastix_int_t maxrank,
121  int unused,
122  pastix_int_t nb,
123  pastix_int_t m,
124  pastix_int_t n,
125  double *A,
126  pastix_int_t lda,
127  pastix_int_t *jpvt,
128  double *tau,
129  double *work,
130  pastix_int_t lwork,
131  double *rwork );
132 int core_dtradd( pastix_uplo_t uplo,
133  pastix_trans_t trans,
134  pastix_int_t M,
135  pastix_int_t N,
136  double alpha,
137  const double *A,
138  pastix_int_t LDA,
139  double beta,
140  double *B,
141  pastix_int_t LDB);
142 int core_dscalo( pastix_trans_t trans,
143  pastix_int_t M,
144  pastix_int_t N,
145  const double *A,
146  pastix_int_t lda,
147  const double *D,
148  pastix_int_t ldd,
149  double *B,
150  pastix_int_t ldb );
151 
152 /**
153  * @}
154  * @name PastixDouble Othogonalization kernels for low-rank updates
155  * @{
156  */
158  pastix_int_t N,
159  pastix_int_t rank,
160  double *U,
161  pastix_int_t ldu,
162  double *V,
163  pastix_int_t ldv );
165  pastix_int_t N,
166  pastix_int_t r1,
167  pastix_int_t *r2ptr,
168  pastix_int_t offx,
169  pastix_int_t offy,
170  double *U,
171  pastix_int_t ldu,
172  double *V,
173  pastix_int_t ldv );
175  pastix_int_t N1,
176  pastix_int_t M2,
177  pastix_int_t N2,
178  pastix_int_t r1,
179  pastix_int_t *r2ptr,
180  pastix_int_t offx,
181  pastix_int_t offy,
182  double *U,
183  pastix_int_t ldu,
184  double *V,
185  pastix_int_t ldv );
186 
187 /**
188  * @}
189  * @name PastixDouble LAPACK kernels
190  * @{
191  */
193  double *A,
194  pastix_int_t lda,
195  pastix_int_t *nbpivots,
196  double criterion );
198  double *A,
199  pastix_int_t lda,
200  pastix_int_t *nbpivots,
201  double criterion );
203  double *A,
204  pastix_int_t lda,
205  pastix_int_t *nbpivots,
206  double criterion );
207 #if defined(PRECISION_z) || defined(PRECISION_c)
209  double *A,
210  pastix_int_t lda,
211  pastix_int_t *nbpivots,
212  double criterion );
213 #endif
215  double *A,
216  pastix_int_t lda,
217  pastix_int_t *nbpivots,
218  double criterion );
219 
220 /**
221  * @}
222  * @}
223  *
224  * @addtogroup kernel_fact
225  * @{
226  * This module contains all the kernel working at the solver matrix structure
227  * level for the numerical factorization step.
228  *
229  * @name PastixDouble cblk-BLAS CPU kernels
230  * @{
231  */
232 
233 int cpucblk_dgeaddsp1d( const SolverCblk *cblk1,
234  SolverCblk *cblk2,
235  const double *L1,
236  double *L2,
237  const double *U1,
238  double *U2 );
239 
241  pastix_trans_t trans,
242  const SolverCblk *cblk,
243  const SolverBlok *blok,
244  SolverCblk *fcblk,
245  const void *A,
246  const void *B,
247  void *C,
248  double *work,
249  pastix_int_t lwork,
250  const pastix_lr_t *lowrank );
251 void cpucblk_dtrsmsp( pastix_side_t side,
252  pastix_uplo_t uplo,
253  pastix_trans_t trans,
254  pastix_diag_t diag,
255  const SolverCblk *cblk,
256  const void *A,
257  void *C,
258  const pastix_lr_t *lowrank );
259 void cpucblk_dscalo ( pastix_trans_t trans,
260  const SolverCblk *cblk,
261  void *dataL,
262  void *dataLD );
263 
265  const SolverCblk *cblk,
266  SolverCblk *fcblk,
267  pastix_int_t blok_mk,
268  pastix_int_t blok_nk,
269  pastix_int_t blok_mn,
270  const void *A,
271  const void *B,
272  void *C,
273  const pastix_lr_t *lowrank );
275  pastix_uplo_t uplo,
276  pastix_trans_t trans,
277  pastix_diag_t diag,
278  const SolverCblk *cblk,
279  pastix_int_t blok_m,
280  const void *A,
281  void *C,
282  const pastix_lr_t *lowrank );
283 void cpublok_dscalo ( pastix_trans_t trans,
284  const SolverCblk *cblk,
285  pastix_int_t blok_m,
286  const void *A,
287  const void *dataD,
288  void *dataB );
289 
290 /**
291  * @}
292  * @name PastixDouble cblk LU kernels
293  * @{
294  */
296  SolverCblk *cblk,
297  void *L,
298  void *U );
300  SolverCblk *cblk,
301  void *L,
302  void *U );
303 int cpucblk_dgetrfsp1d ( SolverMatrix *solvmtx,
304  SolverCblk *cblk,
305  double *work,
306  pastix_int_t lwork );
307 
308 /**
309  * @}
310  * @name PastixDouble cblk Cholesky kernels
311  * @{
312  */
314  SolverCblk *cblk,
315  void *dataL );
317  SolverCblk *cblk,
318  void *L );
319 int cpucblk_dpotrfsp1d( SolverMatrix *solvmtx,
320  SolverCblk *cblk,
321  double *work,
322  pastix_int_t lwork );
323 
324 /**
325  * @}
326  */
327 
328 #if defined(PRECISION_z) || defined(PRECISION_c)
329  /**
330  * @name PastixDouble cblk LDL^h kernels
331  * @{
332  */
334  SolverCblk *cblk,
335  void *L );
337  SolverCblk *cblk,
338  void *L,
339  void *DLh );
340 int cpucblk_dsytrfsp1d( SolverMatrix *solvmtx,
341  SolverCblk *cblk,
342  double *work1,
343  double *work2,
344  pastix_int_t lwork );
345 
346 /**
347  * @}
348  * @name PastixDouble cblk LL^t kernels
349  * @{
350  */
351 int cpucblk_dpotrfsp1d_pxtrf( SolverMatrix *solvmtx,
352  SolverCblk *cblk,
353  void *dataL );
355  SolverCblk *cblk,
356  void *dataL );
357 int cpucblk_dpotrfsp1d( SolverMatrix *solvmtx,
358  SolverCblk *cblk,
359  double *work,
360  pastix_int_t lwork );
361 
362 /**
363  * @}
364  */
365 #endif
366 
367  /**
368  * @name PastixDouble cblk LDL^t kernels
369  * @{
370  */
372  SolverCblk *cblk,
373  void *dataL );
375  SolverCblk *cblk,
376  void *L,
377  void *DLt );
378 int cpucblk_dsytrfsp1d( SolverMatrix *solvmtx,
379  SolverCblk *cblk,
380  double *Dlt,
381  double *work,
382  pastix_int_t lwork );
383 
384 /**
385  * @}
386  * @name PastixDouble initialization and additionnal routines
387  * @{
388  */
389 void cpucblk_dalloc_lrws( const SolverCblk *cblk,
390  pastix_lrblock_t *lrblok,
391  double *ws );
393  SolverCblk *cblk,
394  int rkmax );
396  SolverCblk *cblk );
398  SolverCblk *cblk );
400  SolverCblk *cblk );
402  const SolverMatrix *solvmtx,
403  const pastix_bcsc_t *bcsc,
404  pastix_int_t itercblk );
406  const SolverMatrix *solvmtx,
407  const pastix_bcsc_t *bcsc,
408  pastix_int_t itercblk,
409  const char *directory );
410 void cpucblk_dgetschur( const SolverCblk *cblk,
411  int upper_part,
412  double *S,
413  pastix_int_t lds );
415  const SolverCblk *cblk,
416  FILE *stream );
418  const SolverCblk *cblkA,
419  SolverCblk *cblkB );
421  double alpha,
422  const SolverCblk *cblkA,
423  SolverCblk *cblkB,
424  const pastix_lr_t *lowrank );
425 
426 /**
427  * @}
428  * @name PastixDouble MPI routines
429  * @{
430  */
431 int cpucblk_dincoming_deps( int mt_flag,
432  pastix_coefside_t side,
433  SolverMatrix *solvmtx,
434  SolverCblk *cblk );
436  SolverMatrix *solvmtx,
437  const SolverCblk *cblk,
438  SolverCblk *fcbk );
440  pastix_int_t sched,
441  SolverMatrix *solvmtx );
442 void cpucblk_dupdate_reqtab( SolverMatrix *solvmtx );
443 #if defined( PASTIX_WITH_MPI )
444 void cpucblk_dmpi_progress( pastix_coefside_t side,
445  SolverMatrix *solvmtx,
446  int threadid );
447 void cpucblk_disend_rhs_bwd( SolverMatrix *solvmtx,
448  pastix_rhs_t rhsb,
449  SolverCblk *cblk );
450 #endif
451 void cpucblk_dmpi_rhs_fwd_progress( const args_solve_t *enums,
452  SolverMatrix *solvmtx,
453  pastix_rhs_t rhsb,
454  int threadid );
456  SolverMatrix *solvmtx,
457  pastix_rhs_t rhsb,
458  const SolverCblk *cblk,
459  SolverCblk *fcbk );
460 int cpucblk_dincoming_rhs_fwd_deps( int rank,
461  const args_solve_t *enums,
462  SolverMatrix *solvmtx,
463  SolverCblk *cblk,
464  pastix_rhs_t rhsb );
466  pastix_int_t sched,
467  SolverMatrix *solvmtx,
468  pastix_rhs_t rhsb );
469 
470 void cpucblk_dmpi_rhs_bwd_progress( const args_solve_t *enums,
471  SolverMatrix *solvmtx,
472  pastix_rhs_t rhsb,
473  int threadid );
475  SolverMatrix *solvmtx,
476  pastix_rhs_t rhsb,
477  const SolverCblk *cblk,
478  SolverCblk *fcbk );
479 int cpucblk_dincoming_rhs_bwd_deps( int rank,
480  const args_solve_t *enums,
481  SolverMatrix *solvmtx,
482  SolverCblk *cblk,
483  pastix_rhs_t rhsb );
485  pastix_int_t sched,
486  SolverMatrix *solvmtx,
487  pastix_rhs_t rhsb );
488 void cpucblk_dsend_rhs_forward( const SolverMatrix *solvmtx,
489  SolverCblk *cblk,
490  pastix_rhs_t b );
491 void cpucblk_drecv_rhs_forward( const SolverMatrix *solvmtx,
492  SolverCblk *cblk,
493  double *work,
494  pastix_rhs_t b );
495 void cpucblk_dsend_rhs_backward( const SolverMatrix *solvmtx,
496  SolverCblk *cblk,
497  pastix_rhs_t b );
498 void cpucblk_drecv_rhs_backward( const SolverMatrix *solvmtx,
499  SolverCblk *cblk,
500  pastix_rhs_t b );
501 
502 /**
503  * @}
504  * @name PastixDouble compression/uncompression routines
505  * @{
506  */
508  pastix_int_t M,
509  pastix_int_t N,
510  pastix_lrblock_t *blok );
512  pastix_coefside_t side,
513  int max_ilulvl,
514  SolverCblk *cblk );
516  SolverCblk *cblk );
518  const SolverMatrix *solvmtx,
519  SolverCblk *cblk,
520  pastix_int_t *orig,
521  pastix_int_t *gain );
522 
523 /**
524  * @}
525  * @}
526  *
527  * @addtogroup kernel_solve
528  * @{
529  * This module contains all the kernel working on the solver matrix structure
530  * for the solve step.
531  *
532  */
533 
535  pastix_uplo_t uplo,
536  pastix_trans_t trans,
537  pastix_diag_t diag,
538  const SolverCblk *cblk,
539  int nrhs,
540  const void *dataA,
541  double *b,
542  int ldb );
544  pastix_trans_t trans,
545  pastix_int_t nrhs,
546  const SolverCblk *cblk,
547  const SolverBlok *blok,
548  SolverCblk *fcbk,
549  const void *dataA,
550  const double *B,
551  pastix_int_t ldb,
552  double *C,
553  pastix_int_t ldc );
554 
555 void solve_cblk_dtrsmsp_forward( const args_solve_t *enums,
556  SolverMatrix *datacode,
557  const SolverCblk *cblk,
558  pastix_rhs_t b );
559 void solve_cblk_dtrsmsp_backward( const args_solve_t *enums,
560  SolverMatrix *datacode,
561  SolverCblk *cblk,
562  pastix_rhs_t b );
563 
564 void solve_cblk_ddiag( const SolverCblk *cblk,
565  const void *dataA,
566  int nrhs,
567  double *b,
568  int ldb,
569  double *work );
570 /**
571  * @}
572  *
573  * @addtogroup kernel_fact_null
574  * @{
575  * This module contains the three terms update functions for the LDL^t and
576  * LDL^h factorizations.
577  *
578  */
579 #if defined(PRECISION_z) || defined(PRECISION_c)
580 void core_dsytrfsp1d_gemm( const SolverCblk *cblk,
581  const SolverBlok *blok,
582  SolverCblk *fcblk,
583  const double *L,
584  double *C,
585  double *work );
586 #endif
587 void core_dsytrfsp1d_gemm( const SolverCblk *cblk,
588  const SolverBlok *blok,
589  SolverCblk *fcblk,
590  const double *L,
591  double *C,
592  double *work );
593 
594 int
596  SolverCblk *cblk );
597 void
599  SolverBlok *blok,
600  double *work,
601  pastix_int_t lwork );
602 int
604  SolverCblk *cblk );
605 void
607  SolverBlok *blok,
608  double *work );
609 int
611  SolverCblk *cblk );
612 void
614  SolverBlok *blok,
615  double *work,
616  pastix_int_t lwork );
617 #if defined(PRECISION_z) || defined(PRECISION_c)
618 int
620  SolverCblk *cblk );
621 void
623  SolverBlok *blok,
624  double *work,
625  pastix_int_t lwork );
626 int
628  SolverCblk *cblk );
629 void
631  SolverBlok *blok,
632  double *work );
633 #endif
634 
635 /**
636  * @}
637  */
638 
639 #endif /* _pastix_dcores_h_ */
BEGIN_C_DECLS typedef int pastix_int_t
Definition: datatypes.h:51
double pastix_fixdbl_t
Definition: datatypes.h:65
int core_dgemdm(pastix_trans_t transA, pastix_trans_t transB, int M, int N, int K, double alpha, const double *A, int LDA, const double *B, int LDB, double beta, double *C, int LDC, const double *D, int incD, double *WORK, int LWORK)
Perform one of the following matrix-matrix operations.
Definition: core_dgemdm.c:139
void core_dgetmo(int m, int n, const double *A, int lda, double *B, int ldb)
Transposes a m-by-n matrix out of place using an extra workspace of size m-by-n.
Definition: core_dgetmo.c:49
void core_dplrnt(int m, int n, double *A, int lda, int gM, int m0, int n0, unsigned long long int seed)
Generate a random tile.
Definition: core_dplrnt.c:91
void core_dsytrfsp(pastix_int_t n, double *A, pastix_int_t lda, pastix_int_t *nbpivots, double criterion)
Compute the block static pivoting factorization of the symmetric matrix n-by-n A such that A = L * D ...
pastix_fixdbl_t core_dlrorthu_fullqr(pastix_int_t M, pastix_int_t N, pastix_int_t rank, double *U, pastix_int_t ldu, double *V, pastix_int_t ldv)
Try to orthognalize the u part of the low-rank form, and update the v part accordingly using full QR.
Definition: core_dlrothu.c:83
int core_dtqrcp(double tol, pastix_int_t maxrank, int unused, pastix_int_t nb, pastix_int_t m, pastix_int_t n, double *A, pastix_int_t lda, pastix_int_t *jpvt, double *tau, double *work, pastix_int_t lwork, double *rwork)
Compute a randomized QR factorization with truncated updates.
Definition: core_dtqrcp.c:99
int core_dgeadd(pastix_trans_t trans, pastix_int_t M, pastix_int_t N, double alpha, const double *A, pastix_int_t LDA, double beta, double *B, pastix_int_t LDB)
Add two matrices together.
Definition: core_dgeadd.c:78
int core_dpqrcp(double tol, pastix_int_t maxrank, int full_update, pastix_int_t nb, pastix_int_t m, pastix_int_t n, double *A, pastix_int_t lda, pastix_int_t *jpvt, double *tau, double *work, pastix_int_t lwork, double *rwork)
Compute a rank-reavealing QR factorization.
Definition: core_dpqrcp.c:105
void core_dgetrfsp(pastix_int_t n, double *A, pastix_int_t lda, pastix_int_t *nbpivots, double criterion)
Compute the block static pivoting LU factorization of the matrix m-by-n A = L * U.
int core_drqrrt(double tol, pastix_int_t maxrank, pastix_int_t nb, pastix_int_t m, pastix_int_t n, double *A, pastix_int_t lda, double *tau, double *B, pastix_int_t ldb, double *tau_b, double *work, pastix_int_t lwork, double normA)
Compute a randomized QR factorization with rotation technique.
Definition: core_drqrrt.c:126
pastix_fixdbl_t core_dlrorthu_partialqr(pastix_int_t M, pastix_int_t N, pastix_int_t r1, pastix_int_t *r2ptr, pastix_int_t offx, pastix_int_t offy, double *U, pastix_int_t ldu, double *V, pastix_int_t ldv)
Try to orthognalize the U part of the low-rank form, and update the V part accordingly using partial ...
Definition: core_dlrothu.c:197
int core_dscalo(pastix_trans_t trans, pastix_int_t M, pastix_int_t N, const double *A, pastix_int_t lda, const double *D, pastix_int_t ldd, double *B, pastix_int_t ldb)
Scale a matrix by a diagonal out of place.
Definition: core_dscalo.c:74
int core_drqrcp(double tol, pastix_int_t maxrank, int refine, pastix_int_t nb, pastix_int_t m, pastix_int_t n, double *A, pastix_int_t lda, pastix_int_t *jpvt, double *tau, double *work, pastix_int_t lwork, double *rwork)
Compute a randomized QR factorization.
Definition: core_drqrcp.c:114
int core_dtradd(pastix_uplo_t uplo, pastix_trans_t trans, pastix_int_t M, pastix_int_t N, double alpha, const double *A, pastix_int_t LDA, double beta, double *B, pastix_int_t LDB)
Add two triangular matrices together as in PBLAS pdtradd.
Definition: core_dtradd.c:79
void core_dpotrfsp(pastix_int_t n, double *A, pastix_int_t lda, pastix_int_t *nbpivots, double criterion)
Compute the block static pivoting Cholesky factorization of the matrix n-by-n A = L * L^t .
pastix_fixdbl_t core_dlrorthu_cgs(pastix_int_t M1, pastix_int_t N1, pastix_int_t M2, pastix_int_t N2, pastix_int_t r1, pastix_int_t *r2ptr, pastix_int_t offx, pastix_int_t offy, double *U, pastix_int_t ldu, double *V, pastix_int_t ldv)
Try to orthognalize the U part of the low-rank form, and update the V part accordingly using CGS.
Definition: core_dlrothu.c:430
int cpucblk_dgetrfsp1dplus(SolverMatrix *solvmtx, SolverCblk *cblk)
Perform the LU factorization of a given panel and submit tasks for the subsequent updates.
void cpucblk_dpotrfsp1dplus_update(SolverMatrix *solvmtx, SolverBlok *blok, double *work, pastix_int_t lwork)
Apply the updates of the cholesky factorisation of a given panel.
void cpucblk_dgetrfsp1dplus_update(SolverMatrix *solvmtx, SolverBlok *blok, double *work, pastix_int_t lwork)
Apply the updates of the LU factorisation of a given panel.
void core_dsytrfsp1d_gemm(const SolverCblk *cblk, const SolverBlok *blok, SolverCblk *fcblk, const double *L, double *C, double *work)
int cpucblk_dsytrfsp1dplus(SolverMatrix *solvmtx, SolverCblk *cblk)
Perform the LDL^t factorization of a given panel and submit tasks for the subsequent updates.
void cpucblk_dsytrfsp1dplus_update(SolverMatrix *solvmtx, SolverBlok *blok, double *work)
Apply the updates of the LDL^t factorisation of a given panel.
int cpucblk_dpotrfsp1dplus(SolverMatrix *solvmtx, SolverCblk *cblk)
Perform the Cholesky factorization of a given panel and submit tasks for the subsequent updates.
int cpucblk_dsytrfsp1d_panel(SolverMatrix *solvmtx, SolverCblk *cblk, void *L, void *DLt)
Compute the LDL^t factorization of one panel.
int cpucblk_dincoming_rhs_fwd_deps(int rank, const args_solve_t *enums, SolverMatrix *solvmtx, SolverCblk *cblk, pastix_rhs_t rhsb)
Wait for incoming dependencies, and return when cblk->ctrbcnt has reached 0.
void cpucblk_dgetschur(const SolverCblk *cblk, int upper_part, double *S, pastix_int_t lds)
Extract a cblk panel of the Schur complement to a dense lapack form.
void cpucblk_dsend_rhs_backward(const SolverMatrix *solvmtx, SolverCblk *cblk, pastix_rhs_t b)
Send the rhs associated to a cblk->lcolidx to the remote node.
void cpucblk_duncompress(pastix_coefside_t side, SolverCblk *cblk)
Uncompress a single column block from low-rank format to full-rank format.
void cpucblk_drequest_rhs_bwd_cleanup(const args_solve_t *enums, pastix_int_t sched, SolverMatrix *solvmtx, pastix_rhs_t rhsb)
Waitall routine for current cblk request.
pastix_fixdbl_t cpublok_dcompress(const pastix_lr_t *lowrank, pastix_int_t M, pastix_int_t N, pastix_lrblock_t *blok)
Compress a single block from full-rank to low-rank format.
void cpucblk_dalloc(pastix_coefside_t side, SolverCblk *cblk)
Allocate the cblk structure to store the coefficient.
void cpucblk_dalloc_lr(pastix_coefside_t side, SolverCblk *cblk, int rkmax)
Allocate the cblk structure to store the coefficient.
void cpucblk_drecv_rhs_forward(const SolverMatrix *solvmtx, SolverCblk *cblk, double *work, pastix_rhs_t b)
Receive the rhs associated to a cblk->lcolidx to the remote node.
void cpucblk_dtrsmsp(pastix_side_t side, pastix_uplo_t uplo, pastix_trans_t trans, pastix_diag_t diag, const SolverCblk *cblk, const void *A, void *C, const pastix_lr_t *lowrank)
Compute the updates associated to a column of off-diagonal blocks.
Definition: core_dtrsmsp.c:356
int cpucblk_dgetrfsp1d_panel(SolverMatrix *solvmtx, SolverCblk *cblk, void *L, void *U)
Compute the LU factorization of one panel.
void cpucblk_dfree(pastix_coefside_t side, SolverCblk *cblk)
Free the cblk structure that store the coefficient.
void cpucblk_dscalo(pastix_trans_t trans, const SolverCblk *cblk, void *dataL, void *dataLD)
Copy the L term with scaling for the two-terms algorithm.
Definition: core_dscalo.c:171
int cpucblk_dpotrfsp1d_potrf(SolverMatrix *solvmtx, SolverCblk *cblk, void *dataL)
Compute the Cholesky factorization of the diagonal block in a panel.
pastix_fixdbl_t cpublok_dgemmsp(pastix_trans_t trans, const SolverCblk *cblk, SolverCblk *fcblk, pastix_int_t blok_mk, pastix_int_t blok_nk, pastix_int_t blok_mn, const void *A, const void *B, void *C, const pastix_lr_t *lowrank)
Compute the CPU gemm associated to a couple of off-diagonal blocks.
void cpucblk_drecv_rhs_backward(const SolverMatrix *solvmtx, SolverCblk *cblk, pastix_rhs_t b)
Receive the rhs associated to a cblk->lcolidx to the remote node.
void cpublok_dscalo(pastix_trans_t trans, const SolverCblk *cblk, pastix_int_t blok_m, const void *A, const void *dataD, void *dataB)
Copy the lower terms of the block with scaling for the two-terms algorithm.
Definition: core_dscalo.c:316
void cpucblk_dinit(pastix_coefside_t side, const SolverMatrix *solvmtx, const pastix_bcsc_t *bcsc, pastix_int_t itercblk, const char *directory)
Fully initialize a single cblk.
int cpucblk_dincoming_rhs_bwd_deps(int rank, const args_solve_t *enums, SolverMatrix *solvmtx, SolverCblk *cblk, pastix_rhs_t rhsb)
Wait for incoming dependencies, and return when cblk->ctrbcnt has reached 0.
void cpucblk_ddump(pastix_coefside_t side, const SolverCblk *cblk, FILE *stream)
Dump a single column block into a FILE in a human readale format.
Definition: coeftab_dinit.c:54
void cpucblk_dsend_rhs_forward(const SolverMatrix *solvmtx, SolverCblk *cblk, pastix_rhs_t b)
Send the rhs associated to a cblk->lcolidx to the remote node.
int cpucblk_dincoming_deps(int mt_flag, pastix_coefside_t side, SolverMatrix *solvmtx, SolverCblk *cblk)
Wait for incoming dependencies, and return when cblk->ctrbcnt has reached 0.
int cpucblk_dsytrfsp1d(SolverMatrix *solvmtx, SolverCblk *cblk, double *Dlt, double *work, pastix_int_t lwork)
Perform the LDL^t factorization of a given panel and apply all its updates.
void cpucblk_dfillin(pastix_coefside_t side, const SolverMatrix *solvmtx, const pastix_bcsc_t *bcsc, pastix_int_t itercblk)
Initialize the coeftab structure from the internal bcsc.
int cpucblk_dpotrfsp1d_panel(SolverMatrix *solvmtx, SolverCblk *cblk, void *L)
Compute the Cholesky factorization of one panel.
void cpucblk_dalloc_lrws(const SolverCblk *cblk, pastix_lrblock_t *lrblok, double *ws)
Initialize lrblock structure from a workspace for all blocks of the cblk associated.
Definition: cpucblk_dinit.c:98
void cpucblk_drequest_cleanup(pastix_coefside_t side, pastix_int_t sched, SolverMatrix *solvmtx)
Waitall routine for current cblk request.
pastix_fixdbl_t cpucblk_dgemmsp(pastix_coefside_t sideA, pastix_trans_t trans, const SolverCblk *cblk, const SolverBlok *blok, SolverCblk *fcblk, const void *A, const void *B, void *C, double *work, pastix_int_t lwork, const pastix_lr_t *lowrank)
Compute the updates associated to one off-diagonal block.
int cpucblk_ddiff(pastix_coefside_t side, const SolverCblk *cblkA, SolverCblk *cblkB)
Compare two column blocks in full-rank format.
Definition: cpucblk_ddiff.c:63
int cpucblk_dgetrfsp1d_getrf(SolverMatrix *solvmtx, SolverCblk *cblk, void *L, void *U)
Compute the LU factorization of the diagonal block in a panel.
int cpucblk_dgeaddsp1d(const SolverCblk *cblk1, SolverCblk *cblk2, const double *L1, double *L2, const double *U1, double *U2)
Add two column blocks together.
Definition: core_dgeadd.c:245
void cpucblk_drelease_deps(pastix_coefside_t side, SolverMatrix *solvmtx, const SolverCblk *cblk, SolverCblk *fcbk)
Release the dependencies of the given cblk after an update.
void cpucblk_drelease_rhs_fwd_deps(const args_solve_t *enums, SolverMatrix *solvmtx, pastix_rhs_t rhsb, const SolverCblk *cblk, SolverCblk *fcbk)
Release the dependencies of the given cblk after an update.
int cpucblk_dpotrfsp1d(SolverMatrix *solvmtx, SolverCblk *cblk, double *work, pastix_int_t lwork)
Perform the Cholesky factorization of a given panel and apply all its updates.
int cpucblk_dgetrfsp1d(SolverMatrix *solvmtx, SolverCblk *cblk, double *work, pastix_int_t lwork)
Perform the LU factorization of a given panel and apply all its updates.
void cpucblk_drelease_rhs_bwd_deps(const args_solve_t *enums, SolverMatrix *solvmtx, pastix_rhs_t rhsb, const SolverCblk *cblk, SolverCblk *fcbk)
Release the dependencies of the given cblk after an update.
pastix_fixdbl_t cpucblk_dadd(pastix_coefside_t side, double alpha, const SolverCblk *cblkA, SolverCblk *cblkB, const pastix_lr_t *lowrank)
Add two column bloks in full rank format.
Definition: cpucblk_dadd.c:381
void cpucblk_dalloc_fr(pastix_coefside_t side, SolverCblk *cblk)
Allocate the cblk structure to store the coefficient.
void cpucblk_dmemory(pastix_coefside_t side, const SolverMatrix *solvmtx, SolverCblk *cblk, pastix_int_t *orig, pastix_int_t *gain)
Return the memory gain of the low-rank form over the full-rank form for a single column-block.
void cpucblk_drequest_rhs_fwd_cleanup(const args_solve_t *enums, pastix_int_t sched, SolverMatrix *solvmtx, pastix_rhs_t rhsb)
Waitall routine for current cblk request.
pastix_int_t cpucblk_dcompress(const SolverMatrix *solvmtx, pastix_coefside_t side, int max_ilulvl, SolverCblk *cblk)
Compress a single column block from full-rank to low-rank format.
int cpucblk_dsytrfsp1d_sytrf(SolverMatrix *solvmtx, SolverCblk *cblk, void *dataL)
Computes the LDL^t factorization of the diagonal block in a panel.
pastix_fixdbl_t cpublok_dtrsmsp(pastix_side_t side, pastix_uplo_t uplo, pastix_trans_t trans, pastix_diag_t diag, const SolverCblk *cblk, pastix_int_t blok_m, const void *A, void *C, const pastix_lr_t *lowrank)
Compute the updates associated to one off-diagonal block.
Definition: core_dtrsmsp.c:690
Structure to define the type of function to use for the low-rank kernels and their parameters.
The block low-rank structure to hold a matrix in low-rank form.
void solve_blok_dgemm(pastix_side_t side, pastix_trans_t trans, pastix_int_t nrhs, const SolverCblk *cblk, const SolverBlok *blok, SolverCblk *fcbk, const void *dataA, const double *B, pastix_int_t ldb, double *C, pastix_int_t ldc)
Apply a solve gemm update related to a single block of the matrix A.
void solve_cblk_dtrsmsp_forward(const args_solve_t *enums, SolverMatrix *datacode, const SolverCblk *cblk, pastix_rhs_t b)
Apply a forward solve related to one cblk to all the right hand side.
void solve_blok_dtrsm(pastix_side_t side, pastix_uplo_t uplo, pastix_trans_t trans, pastix_diag_t diag, const SolverCblk *cblk, int nrhs, const void *dataA, double *b, int ldb)
Apply a solve trsm update related to a diagonal block of the matrix A.
Definition: solve_dtrsmsp.c:76
void solve_cblk_dtrsmsp_backward(const args_solve_t *enums, SolverMatrix *datacode, SolverCblk *cblk, pastix_rhs_t b)
Apply a backward solve related to one cblk to all the right hand side.
void solve_cblk_ddiag(const SolverCblk *cblk, const void *dataA, int nrhs, double *b, int ldb, double *work)
Apply the diagonal solve related to one cblk to all the right hand side.
enum pastix_diag_e pastix_diag_t
Diagonal.
enum pastix_uplo_e pastix_uplo_t
Upper/Lower part.
enum pastix_side_e pastix_side_t
Side of the operation.
enum pastix_trans_e pastix_trans_t
Transpostion.
enum pastix_coefside_e pastix_coefside_t
Data blocks used in the kernel.
Main PaStiX RHS structure.
Definition: pastixdata.h:150
Arguments for the solve.
Definition: solver.h:85
Solver block structure.
Definition: solver.h:137
Solver column block structure.
Definition: solver.h:156
Solver column block structure.
Definition: solver.h:200