mirror of
https://github.com/vortexgpgpu/vortex.git
synced 2025-04-22 04:47:56 -04:00
21 lines
507 B
C
21 lines
507 B
C
#ifndef __OCLH__
|
|
#define __OCLH__
|
|
|
|
typedef struct {
|
|
cl_uint major;
|
|
cl_uint minor;
|
|
cl_uint multiProcessorCount;
|
|
} OpenCLDeviceProp;
|
|
|
|
void clMemSet(cl_command_queue, cl_mem, int, size_t);
|
|
char* readFile(const char*);
|
|
|
|
#define CHECK_ERROR(errorMessage) \
|
|
if(clStatus != CL_SUCCESS) \
|
|
{ \
|
|
printf("Error: %s!\n",errorMessage); \
|
|
printf("Line: %d\n",__LINE__); \
|
|
exit(1); \
|
|
}
|
|
|
|
#endif
|