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
testing_cmain.h
Go to the documentation of this file.
1 
15 #ifndef TESTING_CMAIN_H
16 #define TESTING_CMAIN_H
17 
18 #define USAGE(name, args, details) \
19  printf(" Proper Usage is : ./ctesting ncores sched " name " " args " with\n" \
20  " - ncores : number of cores \n" \
21  " - sched : 0 for static, 1 for dynamic\n" \
22  " - " name " : name of function to test\n" \
23  details);
24 
25 #ifdef WIN32
26 #include <float.h>
27 #define isnan _isnan
28 #endif
29 
30 #ifndef max
31 #define max(a, b) ((a) > (b) ? (a) : (b))
32 #endif
33 #ifndef min
34 #define min(a, b) ((a) < (b) ? (a) : (b))
35 #endif
36 
37 extern int IONE;
38 extern int ISEED[4];
39 
40 extern int format[6];
41 extern int trans[3];
42 extern int uplo[2];
43 extern int side[2];
44 extern int diag[2];
45 extern int itype[3];
46 extern int storev[2];
47 
48 extern char *formatstr[6];
49 extern char *transstr[3];
50 extern char *uplostr[2];
51 extern char *sidestr[2];
52 extern char *diagstr[2];
53 extern char *itypestr[3];
54 extern char *storevstr[2];
55 
56 extern void *formatmap[6];
57 
58 int map_CM (int m, int n, int mb, int nb, int i, int j);
59 int map_CCRB(int m, int n, int mb, int nb, int i, int j);
60 int map_CRRB(int m, int n, int mb, int nb, int i, int j);
61 int map_RCRB(int m, int n, int mb, int nb, int i, int j);
62 int map_RRRB(int m, int n, int mb, int nb, int i, int j);
63 int map_RM (int m, int n, int mb, int nb, int i, int j);
64 
65 int testing_cgemm(int argc, char **argv);
66 int testing_chemm(int argc, char **argv);
67 int testing_csymm(int argc, char **argv);
68 int testing_cherk(int argc, char **argv);
69 int testing_csyrk(int argc, char **argv);
70 int testing_cher2k(int argc, char **argv);
71 int testing_csyr2k(int argc, char **argv);
72 int testing_ctrmm(int argc, char **argv);
73 int testing_ctrsm(int argc, char **argv);
74 int testing_cpemv(int argc, char **argv);
75 
76 int testing_cposv(int argc, char **argv);
77 int testing_cgels(int argc, char **argv);
78 int testing_cgesv(int argc, char **argv);
79 
80 int testing_cpotri(int argc, char **argv);
81 int testing_cgetri(int argc, char **argv);
82 
83 int testing_cgeev(int argc, char **argv);
84 int testing_cgesvd(int argc, char **argv);
85 int testing_cheev(int argc, char **argv);
86 int testing_chegv(int argc, char **argv);
87 int testing_chegst(int argc, char **argv);
88 
89 int testing_cgecfi(int argc, char **argv);
90 int testing_cgetmi(int argc, char **argv);
91 
92 #ifdef DOUBLE
93 int testing_ccposv(int argc, char **argv);
94 int testing_ccgesv(int argc, char **argv);
95 int testing_ccungesv(int argc, char **argv);
96 #endif
97 
98 int testing_clange(int argc, char **argv);
99 
100 #endif /* TESTINGS_H */