mirror of
https://github.com/vortexgpgpu/vortex.git
synced 2025-04-22 21:09:15 -04:00
25 lines
568 B
C
25 lines
568 B
C
#ifndef __OCLH__
|
|
#define __OCLH__
|
|
|
|
typedef struct {
|
|
cl_platform_id clPlatform;
|
|
cl_context_properties clCps[3];
|
|
cl_device_id clDevice;
|
|
cl_context clContext;
|
|
cl_command_queue clCommandQueue;
|
|
cl_program clProgram;
|
|
cl_kernel clKernel;
|
|
} OpenCL_Param;
|
|
|
|
|
|
#define CHECK_ERROR(errorMessage) \
|
|
if(clStatus != CL_SUCCESS) \
|
|
{ \
|
|
printf("Error: %s!\n",errorMessage); \
|
|
printf("Line: %d\n",__LINE__); \
|
|
exit(1); \
|
|
}
|
|
|
|
char* readFile(char*);
|
|
|
|
#endif
|