This commit is contained in:
Blaise Tine
2019-11-25 13:15:03 -05:00
parent 027cbddf5f
commit 8d26e402ca
23 changed files with 3243 additions and 1281 deletions

View File

@@ -0,0 +1,23 @@
#ifndef __OCLH__
#define __OCLH__
#include <stdlib.h>
typedef struct {
cl_context clContext;
cl_command_queue clCommandQueue;
cl_kernel clKernel;
} clPrmtr;
void clMemSet(clPrmtr*, 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