Skip to content

Commit

Permalink
Format OpenCL code
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Weil <sw@weilnetz.de>
  • Loading branch information
stweil committed Jun 30, 2018
1 parent 5bb0661 commit de072cc
Show file tree
Hide file tree
Showing 4 changed files with 981 additions and 1,005 deletions.
2 changes: 1 addition & 1 deletion src/opencl/oclkernels.h
Expand Up @@ -12,7 +12,7 @@
#define TESSERACT_OPENCL_OCLKERNELS_H_

#ifndef USE_EXTERNAL_KERNEL
#define KERNEL( ... )# __VA_ARGS__ "\n"
#define KERNEL(...) #__VA_ARGS__ "\n"
// Double precision is a default of spreadsheets
// cl_khr_fp64: Khronos extension
// cl_amd_fp64: AMD extension
Expand Down
12 changes: 6 additions & 6 deletions src/opencl/opencl_device_selection.h
Expand Up @@ -17,8 +17,8 @@
#define _CRT_SECURE_NO_WARNINGS
#endif

#include <cstdlib>
#include <cstdio>
#include <cstdlib>
#include <cstring>

#ifdef __APPLE__
Expand All @@ -34,12 +34,12 @@ typedef enum {
} ds_device_type;

typedef struct {
ds_device_type type;
cl_device_id oclDeviceID;
char* oclDeviceName;
char* oclDriverVersion;
ds_device_type type;
cl_device_id oclDeviceID;
char* oclDeviceName;
char* oclDriverVersion;
// a pointer to the score data, the content/format is application defined.
void* score;
void* score;
} ds_device;

#endif // USE_OPENCL
Expand Down

0 comments on commit de072cc

Please sign in to comment.