-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprintGPUMATMULTCONF.c
94 lines (69 loc) · 3.58 KB
/
printGPUMATMULTCONF.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
/** @file printGPUMATMULTCONF.c
*/
#ifdef HAVE_CUDA
#include "CommandLineInterface/CLIcore.h"
#include "cudacomp_types.h"
extern GPUMATMULTCONF gpumatmultconf[20];
errno_t CUDACOMP_printGPUMATMULTCONF(int index)
{
printf("\n");
printf("============= GPUMATMULTCONF %d ======================\n", index);
printf(" init = %20d\n", (int) gpumatmultconf[index].init);
printf(" refWFSinit = %p\n", (void *) gpumatmultconf[index].refWFSinit);
if(gpumatmultconf[index].refWFSinit != NULL)
{
printf(" refWFSinit[0] = %20d\n",
(int) gpumatmultconf[index].refWFSinit[0]);
}
printf(" alloc = %20d\n", (int) gpumatmultconf[index].alloc);
printf(" CM_ID = %20ld\n", gpumatmultconf[index].CM_ID);
printf(" CM_cnt = %20ld\n", gpumatmultconf[index].CM_cnt);
printf(" timerID = %20ld\n", gpumatmultconf[index].timerID);
printf(" M = %20d\n", (int) gpumatmultconf[index].M);
printf(" N = %20d\n", (int) gpumatmultconf[index].N);
/// synchronization
printf(" sem = %20d\n", (int) gpumatmultconf[index].sem);
printf(" gpuinit = %20d\n", (int) gpumatmultconf[index].gpuinit);
/// one semaphore per thread
/*
sem_t **semptr1;
sem_t **semptr2;
sem_t **semptr3;
sem_t **semptr4;
sem_t **semptr5;
*/
printf(" cMat = %20p\n", (void *) gpumatmultconf[index].cMat);
printf(" cMat_part = %20p\n", (void *) gpumatmultconf[index].cMat_part);
printf(" wfsVec = %20p\n", (void *) gpumatmultconf[index].wfsVec);
printf(" wfsVec_part = %20p\n",
(void *) gpumatmultconf[index].wfsVec_part);
printf(" wfsRef = %20p\n", (void *) gpumatmultconf[index].wfsRef);
printf(" wfsRef_part = %20p\n",
(void *) gpumatmultconf[index].wfsRef_part);
printf(" dmVec = %20p\n", (void *) gpumatmultconf[index].dmVec);
printf(" dmVecTMP = %20p\n", (void *) gpumatmultconf[index].dmVecTMP);
printf(" dmVec_part = %20p\n",
(void *) gpumatmultconf[index].dmVec_part);
printf(" dmRef_part = %20p\n",
(void *) gpumatmultconf[index].dmRef_part);
printf(" d_cMat = %20p\n", (void *) gpumatmultconf[index].d_cMat);
printf(" d_wfsVec = %20p\n", (void *) gpumatmultconf[index].d_wfsVec);
printf(" d_dmVec = %20p\n", (void *) gpumatmultconf[index].d_dmVec);
printf(" d_wfsRef = %20p\n", (void *) gpumatmultconf[index].d_wfsRef);
printf(" d_dmRef = %20p\n", (void *) gpumatmultconf[index].d_dmRef);
// threads
printf(" thdata = %20p\n", (void *) gpumatmultconf[index].thdata);
printf(" threadarray = %20p\n",
(void *) gpumatmultconf[index].threadarray);
printf(" NBstreams = %20d\n", (int) gpumatmultconf[index].NBstreams);
printf(" stream = %20p\n", (void *) gpumatmultconf[index].stream);
printf(" handle = %20p\n", (void *) gpumatmultconf[index].handle);
printf(" Nsize = %20p\n", (void *) gpumatmultconf[index].Nsize);
printf(" Noffset = %20p\n", (void *) gpumatmultconf[index].Noffset);
printf(" GPUdevice = %20p\n", (void *) gpumatmultconf[index].GPUdevice);
printf(" orientation = %20d\n", (int) gpumatmultconf[index].orientation);
printf("======================================================\n");
printf("\n");
return RETURN_SUCCESS;
}
#endif