summaryrefslogtreecommitdiffstats
path: root/xmrstak
diff options
context:
space:
mode:
authorpsychocrypt <psychocryptHPC@gmail.com>2018-03-31 20:52:20 +0200
committerpsychocrypt <psychocryptHPC@gmail.com>2018-04-01 11:26:20 +0200
commita832fdf3dff2223a4961f88d161f750aba92c76a (patch)
tree424b41f54ba0dafc661a02b7be093b321808a613 /xmrstak
parent2781b2401ce6790a3ca1924287cdef0970febc1b (diff)
downloadxmr-stak-a832fdf3dff2223a4961f88d161f750aba92c76a.zip
xmr-stak-a832fdf3dff2223a4961f88d161f750aba92c76a.tar.gz
fix OpenCl AMD on OSX
fix #1218 - remove inline function with ugly macro :-(
Diffstat (limited to 'xmrstak')
-rw-r--r--xmrstak/backend/amd/amd_gpu/opencl/cryptonight.cl5
1 files changed, 1 insertions, 4 deletions
diff --git a/xmrstak/backend/amd/amd_gpu/opencl/cryptonight.cl b/xmrstak/backend/amd/amd_gpu/opencl/cryptonight.cl
index 7a36357..5d4e66c 100644
--- a/xmrstak/backend/amd/amd_gpu/opencl/cryptonight.cl
+++ b/xmrstak/backend/amd/amd_gpu/opencl/cryptonight.cl
@@ -433,10 +433,7 @@ inline ulong getIdx()
#endif
}
-inline uint4 mix_and_propagate(__local uint4 xin[8][WORKSIZE])
-{
- return xin[(get_local_id(1)) % 8][get_local_id(0)] ^ xin[(get_local_id(1) + 1) % 8][get_local_id(0)];
-}
+#define mix_and_propagate(xin) (xin)[(get_local_id(1)) % 8][get_local_id(0)] ^ (xin)[(get_local_id(1) + 1) % 8][get_local_id(0)]
__attribute__((reqd_work_group_size(WORKSIZE, 8, 1)))
__kernel void cn0(__global ulong *input, __global uint4 *Scratchpad, __global ulong *states, ulong Threads
OpenPOWER on IntegriCloud