PAPI 7.1.0.0
Loading...
Searching...
No Matches
lcuda_debug.h
Go to the documentation of this file.
1
7#ifndef __LCUDA_DEBUG_H__
8#define __LCUDA_DEBUG_H__
9
10#include "papi.h"
11#include "papi_internal.h"
12
13/* Macro to either exit or continue depending on switch */
14#define EXIT_OR_NOT
15#ifdef EXIT_ON_ERROR
16# undef EXIT_OR_NOT
17# define EXIT_OR_NOT exit(-1)
18#endif
19
20/* Function calls */
21#define COMPDBG(format, args...) SUBDBG("COMPDEBUG: " format, ## args);
22
23/* General log */
24#define LOGDBG(format, args...) SUBDBG("LOG: " format, ## args);
25
26/* Lock and unlock calls */
27#define LOCKDBG(format, args...) SUBDBG("LOCK: " format, ## args);
28
29/* ERROR */
30#define ERRDBG(format, args...) SUBDBG("ERROR: " format, ## args);
31
32/* Log cuda driver and runtime calls */
33#define LOGCUDACALL(format, args...) SUBDBG("CUDACALL: " format, ## args);
34
35/* Log cupti and perfworks calls */
36#define LOGCUPTICALL(format, args...) SUBDBG("CUPTICALL: " format, ## args);
37
38#endif /* __LCUDA_DEBUG_H__ */
Return codes and api definitions.