blob: 431a46fb69828d598c190bf81424e93587469ac9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include <iostream>
#ifdef HAS_OPENCL
#include <CL/opencl.h>
int initOpenCL();
#else
// Quick and dirty cl_float4 replacement
typedef union {
float s[4];
struct{ float x, y, z, w; };
struct{ float s0, s1, s2, s3; };
} cl_float4;
#endif /*HAS_OPENCL*/
int initLibs();
|