MAGMA  magma-1.4.0
Matrix Algebra on GPU and Multicore Architectures
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
auxiliary.h
Go to the documentation of this file.
1 /*
2  -- MAGMA (version 1.4.0) --
3  Univ. of Tennessee, Knoxville
4  Univ. of California, Berkeley
5  Univ. of Colorado, Denver
6  August 2013
7 */
8 
9 #ifndef _MAGMA_AUXILIARY_
10 #define _MAGMA_AUXILIARY_
11 
12 typedef struct magma_timestr_s
13 {
14  unsigned int sec;
15  unsigned int usec;
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
22 int magma_get_spotrf_nb(int m);
23 int magma_get_sgeqrf_nb(int m);
24 int magma_get_sgeqlf_nb(int m);
25 int magma_get_sgetrf_nb(int m);
26 int magma_get_sgehrd_nb(int m);
27 int magma_get_ssytrd_nb(int m);
28 int magma_get_sgelqf_nb(int m);
29 int magma_get_sgebrd_nb(int m);
30 int magma_get_ssygst_nb(int m);
31 
32 int magma_get_dpotrf_nb(int m);
33 int magma_get_dgeqrf_nb(int m);
34 int magma_get_dgeqlf_nb(int m);
35 int magma_get_dgetrf_nb(int m);
36 int magma_get_dgehrd_nb(int m);
37 int magma_get_dsytrd_nb(int m);
38 int magma_get_dgelqf_nb(int m);
39 int magma_get_dgebrd_nb(int m);
40 int magma_get_dsygst_nb(int m);
41 
42 int magma_get_cpotrf_nb(int m);
43 int magma_get_cgetrf_nb(int m);
44 int magma_get_cgeqrf_nb(int m);
45 int magma_get_cgeqlf_nb(int m);
46 int magma_get_cgehrd_nb(int m);
47 int magma_get_chetrd_nb(int m);
48 int magma_get_cgelqf_nb(int m);
49 int magma_get_cgebrd_nb(int m);
50 int magma_get_chegst_nb(int m);
51 
52 int magma_get_zpotrf_nb(int m);
53 int magma_get_zgetrf_nb(int m);
54 int magma_get_zgeqrf_nb(int m);
55 int magma_get_zgeqlf_nb(int m);
56 int magma_get_zgehrd_nb(int m);
57 int magma_get_zhetrd_nb(int m);
58 int magma_get_zgelqf_nb(int m);
59 int magma_get_zgebrd_nb(int m);
60 int magma_get_zhegst_nb(int m);
61 
63 double GetTimerValue(magma_timestr_t time_1, magma_timestr_t time_2);
64 
65 void printout_devices();
66 
67 void spanel_to_q(char uplo, int ib, float *a, int lda, float *work);
68 void sq_to_panel(char uplo, int ib, float *a, int lda, float *work);
69 
70 void swp2pswp(char trans, int n, int *ipiv, int *newipiv);
71 
72 void cpanel_to_q(char uplo, int ib, cuFloatComplex *a, int lda, cuFloatComplex *work);
73 void cq_to_panel(char uplo, int ib, cuFloatComplex *a, int lda, cuFloatComplex *work);
74 
75 void dpanel_to_q(char uplo, int ib, double *a, int lda, double *work);
76 void dq_to_panel(char uplo, int ib, double *a, int lda, double *work);
77 
78 void zpanel_to_q(char uplo, int ib, cuDoubleComplex *a, int lda, cuDoubleComplex *work);
79 void zq_to_panel(char uplo, int ib, cuDoubleComplex *a, int lda, cuDoubleComplex *work);
80 
81 float getv(float *da);
82 
83 #ifdef __cplusplus
84 }
85 #endif
86 
87 #endif
void zq_to_panel(char uplo, magma_int_t ib, magmaDoubleComplex *A, magma_int_t lda, magmaDoubleComplex *work)
Definition: zpanel_to_q.cpp:57
magma_int_t magma_get_dsytrd_nb(magma_int_t m)
Definition: get_nb.cpp:391
magma_int_t magma_get_sgebrd_nb(magma_int_t m)
Definition: get_nb.cpp:443
magma_int_t magma_get_cgelqf_nb(magma_int_t m)
Definition: get_nb.cpp:250
magma_int_t magma_get_zhetrd_nb(magma_int_t m)
Definition: get_nb.cpp:423
magma_int_t magma_get_sgelqf_nb(magma_int_t m)
Definition: get_nb.cpp:232
magma_int_t magma_get_dsygst_nb(magma_int_t m)
Definition: get_nb.cpp:522
magma_int_t magma_get_sgetrf_nb(magma_int_t m)
Definition: get_nb.cpp:266
magma_int_t magma_get_dpotrf_nb(magma_int_t m)
Definition: get_nb.cpp:47
magma_int_t magma_get_chegst_nb(magma_int_t m)
Definition: get_nb.cpp:537
void sq_to_panel(char uplo, magma_int_t ib, float *A, magma_int_t lda, float *work)
Definition: spanel_to_q.cpp:57
struct magma_timestr_s magma_timestr_t
unsigned int usec
Definition: auxiliary.h:15
magma_int_t magma_get_zgeqlf_nb(magma_int_t m)
Definition: get_nb.cpp:223
void cq_to_panel(char uplo, magma_int_t ib, magmaFloatComplex *A, magma_int_t lda, magmaFloatComplex *work)
Definition: cpanel_to_q.cpp:57
magma_int_t magma_get_cgehrd_nb(magma_int_t m)
Definition: get_nb.cpp:361
magma_int_t magma_get_sgehrd_nb(magma_int_t m)
Definition: get_nb.cpp:342
void cpanel_to_q(char uplo, magma_int_t ib, magmaFloatComplex *A, magma_int_t lda, magmaFloatComplex *work)
Definition: cpanel_to_q.cpp:17
magma_int_t magma_get_sgeqrf_nb(magma_int_t m)
Definition: get_nb.cpp:120
void swp2pswp(magma_trans_t trans, magma_int_t n, magma_int_t *ipiv, magma_int_t *newipiv)
Definition: auxiliary.cpp:117
magma_int_t magma_get_cpotrf_nb(magma_int_t m)
Definition: get_nb.cpp:64
unsigned int sec
Definition: auxiliary.h:14
magma_int_t magma_get_zpotrf_nb(magma_int_t m)
Definition: get_nb.cpp:79
magma_int_t magma_get_chetrd_nb(magma_int_t m)
Definition: get_nb.cpp:408
magma_int_t magma_get_cgebrd_nb(magma_int_t m)
Definition: get_nb.cpp:473
magma_int_t magma_get_dgehrd_nb(magma_int_t m)
Definition: get_nb.cpp:355
magma_int_t magma_get_zhegst_nb(magma_int_t m)
Definition: get_nb.cpp:552
magma_int_t magma_get_zgehrd_nb(magma_int_t m)
Definition: get_nb.cpp:367
magma_int_t magma_get_ssytrd_nb(magma_int_t m)
Definition: get_nb.cpp:376
magma_int_t magma_get_dgelqf_nb(magma_int_t m)
Definition: get_nb.cpp:237
magma_int_t magma_get_dgeqrf_nb(magma_int_t m)
Definition: get_nb.cpp:141
magma_int_t magma_get_zgeqrf_nb(magma_int_t m)
Definition: get_nb.cpp:169
void zpanel_to_q(char uplo, magma_int_t ib, magmaDoubleComplex *A, magma_int_t lda, magmaDoubleComplex *work)
Definition: zpanel_to_q.cpp:17
void spanel_to_q(char uplo, magma_int_t ib, float *A, magma_int_t lda, float *work)
Definition: spanel_to_q.cpp:17
void dpanel_to_q(char uplo, magma_int_t ib, double *A, magma_int_t lda, double *work)
Definition: dpanel_to_q.cpp:17
magma_int_t magma_get_cgeqrf_nb(magma_int_t m)
Definition: get_nb.cpp:155
magma_int_t magma_get_dgebrd_nb(magma_int_t m)
Definition: get_nb.cpp:458
magma_int_t magma_get_sgeqlf_nb(magma_int_t m)
Definition: get_nb.cpp:190
magma_int_t magma_get_dgeqlf_nb(magma_int_t m)
Definition: get_nb.cpp:203
void dq_to_panel(char uplo, magma_int_t ib, double *A, magma_int_t lda, double *work)
Definition: dpanel_to_q.cpp:57
magma_int_t magma_get_spotrf_nb(magma_int_t m)
Definition: get_nb.cpp:29
magma_int_t magma_get_cgetrf_nb(magma_int_t m)
Definition: get_nb.cpp:304
magma_int_t magma_get_zgebrd_nb(magma_int_t m)
Definition: get_nb.cpp:488
float getv(float *da)
Definition: auxiliary.cpp:498
double GetTimerValue(magma_timestr_t start, magma_timestr_t end)
Definition: timer.cpp:94
magma_int_t magma_get_dgetrf_nb(magma_int_t m)
Definition: get_nb.cpp:285
magma_int_t magma_get_zgelqf_nb(magma_int_t m)
Definition: get_nb.cpp:257
magma_int_t magma_get_zgetrf_nb(magma_int_t m)
Definition: get_nb.cpp:322
magma_timestr_t get_current_time(void)
Definition: timer.cpp:76
void printout_devices()
Definition: auxiliary.cpp:128
magma_int_t magma_get_cgeqlf_nb(magma_int_t m)
Definition: get_nb.cpp:216
magma_int_t magma_get_ssygst_nb(magma_int_t m)
Definition: get_nb.cpp:506