From 23ca9c8c6b7effc598e373d8f67cbe15a82c551c Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Fri, 22 Mar 2019 10:06:02 +0100 Subject: [PATCH] PyOpenCL compatibility fix It looks like PyOpenCL obsoleted the enqueue_read_buffer method, and enqueue_copy should be used instead. Even though enqueue_copy already exists with the earliest version of PyOpenCL I looked at, I wrote it in a backwards-compatible way so that it doesn't break in case I missed something. Tested on OSX in frozen mode, but it should be platform-independent. --- src/openclpow.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/openclpow.py b/src/openclpow.py index b0be542c..eb91a07f 100644 --- a/src/openclpow.py +++ b/src/openclpow.py @@ -90,7 +90,10 @@ def do_opencl_pow(hash, target): while output[0][0] == 0 and shutdown == 0: kernel.set_arg(2, pack("