Blame view

Debug/src/utils/dev_errors.h 639 Bytes
0c8ce2b0   Pedro Roque   missing files
1
/*
4d26a735   Pedro Roque   Increased recogni...
2
 * dev_errors.h
0c8ce2b0   Pedro Roque   missing files
3
4
 *
 *  Created on: 15/11/2014
4d26a735   Pedro Roque   Increased recogni...
5
 *      Author: Pedro
0c8ce2b0   Pedro Roque   missing files
6
7
 */

4d26a735   Pedro Roque   Increased recogni...
8
9
#ifndef SRC_UTILS_DEV_ERRORS_H_
#define SRC_UTILS_DEV_ERRORS_H_
0c8ce2b0   Pedro Roque   missing files
10
11
12
13
14
15
16
17
18

#include "CL/cl.h"
#include "CL/cl_platform.h"

#include "../config.h"

#if RUN_IN_CUDA
#include <cuda.h>
#include <builtin_types.h>
4d26a735   Pedro Roque   Increased recogni...
19
void cuda_check_error(CUresult ret, const char* operation, char* dev_name);
0c8ce2b0   Pedro Roque   missing files
20
21
#endif

4d26a735   Pedro Roque   Increased recogni...
22
23
void cl_check_error(cl_int ret, const char *operation, char *dev_name);
void cl_check_build_error(cl_int ret, cl_program *prog, cl_device_id *device_id, char *dev_name);
0c8ce2b0   Pedro Roque   missing files
24
25
const char* cl_get_err_str(cl_int error_code);

4d26a735   Pedro Roque   Increased recogni...
26
#endif /* SRC_UTILS_DEV_ERRORS_H_ */