mirror of
https://github.com/vortexgpgpu/vortex.git
synced 2025-04-22 04:47:56 -04:00
+ Microarchitecture optimizations + 64-bit support + Xilinx FPGA support + LLVM-16 support + Refactoring and quality control fixes minor update minor update minor update minor update minor update minor update cleanup cleanup cache bindings and memory perf refactory minor update minor update hw unit tests fixes minor update minor update minor update minor update minor update minor udpate minor update minor update minor update minor update minor update minor update minor update minor updates minor updates minor update minor update minor update minor update minor update minor update minor updates minor updates minor updates minor updates minor update minor update
29 lines
576 B
C
29 lines
576 B
C
#ifndef __OCLH__
|
|
#define __OCLH__
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
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); \
|
|
}
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|