HiCMA
Hierarchical Computations on Manycore Architectures
testing_zauxiliary.h
Go to the documentation of this file.
1 
26 #ifndef TESTING_ZAUXILIARY_H
27 #define TESTING_ZAUXILIARY_H
28 
29 //#include "testing.h"
30 
31 #define USAGE(name, args, details) \
32  printf(" Proper Usage is : ./ztesting ncores ngpus " name " " args " with\n" \
33  " - ncores : number of cores \n" \
34  " - ngpus : number of GPUs\n" \
35  " - name : name of function to test\n" \
36  details);
37 
38 #ifdef WIN32
39 #include <float.h>
40 #define isnan _isnan
41 #endif
42 
43 #ifndef max
44 #define max(a, b) ((a) > (b) ? (a) : (b))
45 #endif
46 #ifndef min
47 #define min(a, b) ((a) < (b) ? (a) : (b))
48 #endif
49 
50 extern int IONE;
51 extern int ISEED[4];
52 
53 extern int format[6];
54 extern int trans[3];
55 extern int uplo[2];
56 extern int side[2];
57 extern int diag[2];
58 extern int itype[3];
59 extern int storev[2];
60 extern int norm[4];
61 
62 extern char *formatstr[6];
63 extern char *transstr[3];
64 extern char *uplostr[2];
65 extern char *sidestr[2];
66 extern char *diagstr[2];
67 extern char *itypestr[3];
68 extern char *storevstr[2];
69 extern char *normstr[4];
70 
71 extern int (*formatmap[6])(int, int, int, int, int, int);
72 
73 int map_CM (int m, int n, int mb, int nb, int i, int j);
74 int map_CCRB(int m, int n, int mb, int nb, int i, int j);
75 int map_CRRB(int m, int n, int mb, int nb, int i, int j);
76 int map_RCRB(int m, int n, int mb, int nb, int i, int j);
77 int map_RRRB(int m, int n, int mb, int nb, int i, int j);
78 int map_RM (int m, int n, int mb, int nb, int i, int j);
79 
80 
81 int testing_dposv(int argc, char **argv);
82 int testing_dtrsmd(int argc, char **argv);
83 
84 #endif /* TESTINGS_H */
int map_CM(int m, int n, int mb, int nb, int i, int j)
int format[6]
int uplo[2]
int itype[3]
char * diagstr[2]
int(* formatmap[6])(int, int, int, int, int, int)
char * formatstr[6]
char * uplostr[2]
int norm[4]
int ISEED[4]
Definition: timing.c:84
int map_RCRB(int m, int n, int mb, int nb, int i, int j)
int trans[3]
int map_CRRB(int m, int n, int mb, int nb, int i, int j)
int map_CCRB(int m, int n, int mb, int nb, int i, int j)
int storev[2]
char * normstr[4]
char * storevstr[2]
int map_RRRB(int m, int n, int mb, int nb, int i, int j)
int testing_dtrsmd(int argc, char **argv)
char * sidestr[2]
int diag[2]
char * transstr[3]
char * itypestr[3]
int IONE
int testing_dposv(int argc, char **argv)
int map_RM(int m, int n, int mb, int nb, int i, int j)
int side[2]