Lines Matching refs:b

70 static double ***create_tile_array(double *A, int n, int b) {  in create_tile_array()  argument
71 const int p = n / b; in create_tile_array()
80 double *temp_block = (double *)calloc(sizeof(double), b * b); in create_tile_array()
82 for (int A_j = j * b, T_j = 0; T_j < b; ++A_j, ++T_j) { in create_tile_array()
83 for (int A_i = i * b, T_i = 0; T_i < b; ++A_i, ++T_i) { in create_tile_array()
84 temp_block[T_j * b + T_i] = A[A_j * n + A_i]; in create_tile_array()
94 static void collapse_tile_array(double ***tile, double *A, int n, int b) { in collapse_tile_array() argument
95 const int p = n / b; in collapse_tile_array()
101 for (int A_j = j * b, T_j = 0; T_j < b; ++A_j, ++T_j) { in collapse_tile_array()
102 for (int A_i = i * b, T_i = 0; T_i < b; ++A_i, ++T_i) { in collapse_tile_array()
103 A[A_j * n + A_i] = temp_block[T_j * b + T_i]; in collapse_tile_array()
165 double operator()(double *A, int n, int b, int trials) { in operator ()() argument
173 double ***tile = create_tile_array(A, n, b); in operator ()()
175 func(tile, n, b); in operator ()()
178 collapse_tile_array(tile, A0, n, b); in operator ()()
183 func(A0, n, b); in operator ()()
213 b, in operator ()()
223 virtual void func(void *ptr, int n, int b) = 0;
228 static void call_dpotf2(double ***tile, int b, int k) { in call_dpotf2() argument
232 dpotf2(&uplo, &b, A_block, &b, &info); in call_dpotf2()
236 static void call_dtrsm(double ***tile, int b, int k, int j) { in call_dtrsm() argument
241 dtrsm(&side, &uplo, &transa, &diag, &b, &b, &alpha, L_block, &b, A_block, &b); in call_dtrsm()
245 static void call_dsyr2k(double ***tile, int b, int k, int j, int i) { in call_dsyr2k() argument
254 dsyrk(&uplo, &transa, &b, &b, &alpha, L_block, &b, &beta, A_block, &b); in call_dsyr2k()
259 dgemm(&transa, &transb, &b, &b, &b, &alpha, L1_block, &b, L2_block, &b, &beta, A_block, &b); in call_dsyr2k()
269 virtual void func(void *ptr, int n, int b) { in func() argument
271 const int p = n / b; in func()
274 call_dpotf2(tile, b, k); in func()
277 call_dtrsm(tile, b, k, j); in func()
280 call_dsyr2k(tile, b, k, j, i); in func()
326 int b; member in dpotf2_body
329 dpotf2_body(int p_, int b_) : p(p_), b(b_) {} in dpotf2_body()
339 dpotf2(&uplo, &b, A_block, &b, &info); in operator ()()
353 int b; member in dtrsm_body
356 dtrsm_body(int p_, int b_) : p(p_), b(b_) {} in dtrsm_body()
370 dtrsm(&side, &uplo, &transa, &diag, &b, &b, &alpha, L_block, &b, A_block, &b); in operator ()()
390 int b; member in dsyr2k_body
393 dsyr2k_body(int p_, int b_) : p(p_), b(b_) {} in dsyr2k_body()
413 dsyrk(&uplo, &transa, &b, &b, &alpha, L_block, &b, &beta, A_block, &b); in operator ()()
420 &b, in operator ()()
421 &b, in operator ()()
422 &b, in operator ()()
425 &b, in operator ()()
427 &b, in operator ()()
430 &b); in operator ()()
469 virtual void func(void *ptr, int n, int b) { in func() argument
475 const int p = n / b; in func()
478 dpotf2_node_t dpotf2_node(g, unlimited, dpotf2_body(p, b)); in func()
479 dtrsm_node_t dtrsm_node(g, unlimited, dtrsm_body(p, b)); in func()
480 dsyr2k_node_t dsyr2k_node(g, unlimited, dsyr2k_body(p, b)); in func()
545 virtual void func(void *ptr, int n, int b) { in func() argument
548 const int p = n / b; in func()
556 call_dpotf2(tile, b, k); in func()
563 call_dtrsm(tile, b, k, j); in func()
570 call_dsyr2k(tile, b, k, j, i); in func()