From 416e4a71154e641e59d9ede776df8c9ae9c9a8b9 Mon Sep 17 00:00:00 2001 From: Genoil Date: Wed, 21 Sep 2016 10:03:30 +0200 Subject: [PATCH] easier to compile in codexl --- libethash-cl/ethash_cl_miner_kernel.cl | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/libethash-cl/ethash_cl_miner_kernel.cl b/libethash-cl/ethash_cl_miner_kernel.cl index 390a021c9..a3e190034 100644 --- a/libethash-cl/ethash_cl_miner_kernel.cl +++ b/libethash-cl/ethash_cl_miner_kernel.cl @@ -2,6 +2,30 @@ #define OPENCL_PLATFORM_NVIDIA 1 #define OPENCL_PLATFORM_AMD 2 +#ifndef ACCESSES +#define ACCESSES 64 +#endif + +#ifndef GROUP_SIZE +#define GROUP_SIZE 128 +#endif + +#ifndef MAX_OUTPUTS +#define MAX_OUTPUTS 63U +#endif + +#ifndef PLATFORM +#define PLATFORM 2 +#endif + +#ifndef DAG_SIZE +#define DAG_SIZE 8388593 +#endif + +#ifndef LIGHT_SIZE +#define LIGHT_SIZE 262139 +#endif + #define ETHASH_DATASET_PARENTS 256 #define NODE_WORDS (64/4)