|
@@ -24,7 +24,7 @@ using namespace std;
|
|
|
#define STR_SIZE 256
|
|
|
#define DEVICE 0
|
|
|
#define M_SEED 9
|
|
|
-#define BENCH_PRINT
|
|
|
+//#define BENCH_PRINT
|
|
|
#define IN_RANGE(x, min, max) ((x)>=(min) && (x)<=(max))
|
|
|
#define CLAMP_RANGE(x, min, max) x = (x<(min)) ? min : ((x>(max)) ? max : x )
|
|
|
#define MIN(a, b) ((a)<=(b) ? (a) : (b))
|
|
@@ -103,7 +103,7 @@ int main(int argc, char** argv)
|
|
|
|
|
|
// Create and initialize the OpenCL object.
|
|
|
OpenCL cl(1); // 1 means to display output (debugging mode).
|
|
|
- cl.init(1); // 1 means to use GPU. 0 means use CPU.
|
|
|
+ cl.init(0); // 1 means to use GPU. 0 means use CPU.
|
|
|
cl.gwSize(rows * cols);
|
|
|
|
|
|
// Create and build the kernel.
|