project tests refactoring

This commit is contained in:
Blaise Tine
2021-06-13 17:42:04 -07:00
parent 47c3234659
commit 03406c0a3f
631 changed files with 394471 additions and 653511 deletions

25
tests/opencl/lbm/ocl.h Normal file
View File

@@ -0,0 +1,25 @@
#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