summaryrefslogtreecommitdiff
path: root/benchmarks/CUDA/WP/debug.m4
blob: 0d6ba170faba1c8d458388797658838bf1924a6c (plain)
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
define( DIAGOUTPUT1, `
#if defined(DEVICEEMU) && defined(DEBUGOUTPUT)
 if (ig==IDEBUG&&jg==JDEBUG&&k+1==KDEBUG) fprintf(stderr,"ZAP %8s %25.17e \n", "$1", $1[k] );
#endif
')
define( DIAGOUTPUT1i, `
#if defined(DEVICEEMU) && defined(DEBUGOUTPUT)
 if (ig==IDEBUG&&jg==JDEBUG&&k+1==KDEBUG) fprintf(stderr,"ZAP %8s %20d \n", "$1", $1 );
#endif
')
define( DIAGOUTPUT11, `
#if defined(DEVICEEMU) && defined(DEBUGOUTPUT)
 if (ig==IDEBUG&&jg==JDEBUG&&k+1==KDEBUG) fprintf(stderr,"ZAP %8s %25.17e \n", "$1", $1[k+1] );
#endif
')
define( DIAGOUTPUT2, `
#if defined(DEVICEEMU) && defined(DEBUGOUTPUT)
 if (ig==IDEBUG&&jg==JDEBUG) fprintf(stderr,"ZAP %8s %25.17e \n", "$1", $1[KDEBUG-1] );
#endif
')
define( kDIAGOUTPUT1, `
#if defined(DEVICEEMU) && defined(DEBUGOUTPUT)
 if (ig==IDEBUG&&jg==JDEBUG) fprintf(stderr,"ZAP %8s %25.17e \n", "$1", $1[k] );
#endif
')
define( kDIAGOUTPUT1i, `
#if defined(DEVICEEMU) && defined(DEBUGOUTPUT)
 if (ig==IDEBUG&&jg==JDEBUG) fprintf(stderr,"ZAP %8s %20d \n", "$1", $1 );
#endif
')
define( kDIAGOUTPUT11, `
#if defined(DEVICEEMU) && defined(DEBUGOUTPUT)
 if (ig==IDEBUG&&jg==JDEBUG) fprintf(stderr,"ZAP %8s %25.17e \n", "$1", $1[k+1] );
#endif
')