-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebug.h
More file actions
29 lines (23 loc) · 788 Bytes
/
debug.h
File metadata and controls
29 lines (23 loc) · 788 Bytes
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
#ifndef _DEBUG_H_
#define _DEBUG_H_
#include <string>
#ifdef AFET_OPENCL
#include <CL/cl.h>
#endif
#ifndef EXTERN
#define EXTERN extern
#endif
#define AFET_DEBUG_SAVE_BUFFERS 0x01
#define AFET_DEBUG_FLUSH 0x02
#define AFET_DEBUG_NOFADVISE 0x04
#define AFET_DEBUG_NOINPUT 0x08
#define AFET_DEBUG_NOOUTPUT 0x10
EXTERN int debug_mode;
void export_c_buffer(void * data, size_t width, size_t height, size_t elemsize, std::string filename);
#ifdef AFET_CUDA
void export_cuda_buffer(void * d_data, size_t width, size_t height, size_t elemsize, std::string filename);
#endif
#ifdef AFET_OPENCL
void export_cl_buffer(cl_command_queue cmd_queue, cl_mem d_data, size_t width, size_t height, size_t elemsize, std::string filename);
#endif
#endif