From 6737ad6cbc23551988291226180dab33c36252f5 Mon Sep 17 00:00:00 2001 From: sven Date: Tue, 20 Nov 2018 16:48:58 +0100 Subject: [PATCH] enqueue_write_buffer does not exists anymore in pyOpenCL --- pyPaSWAS/Core/SmithWatermanOcl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyPaSWAS/Core/SmithWatermanOcl.py b/pyPaSWAS/Core/SmithWatermanOcl.py index cd5520b..5f01471 100644 --- a/pyPaSWAS/Core/SmithWatermanOcl.py +++ b/pyPaSWAS/Core/SmithWatermanOcl.py @@ -270,7 +270,7 @@ def _init_memory(self): def _init_zero_copy(self): ''' Initializes the index used for the 'zero copy' of the found starting points ''' index = numpy.zeros((1), dtype=numpy.int32) - cl.enqueue_write_buffer(self.queue, self.d_index_increment, index) + cl.enqueue_copy(self.queue, self.d_index_increment, index) def _compile_code(self): """Compile the device code with current settings"""