From 67f39608acf4b10ff92e5a82db078a5e7aab065d Mon Sep 17 00:00:00 2001 From: Tomas Farago Date: Tue, 25 Feb 2020 07:11:44 +0100 Subject: Make c_conj work with opencl task fixes #193 --- src/kernels/complex.cl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/kernels/complex.cl b/src/kernels/complex.cl index d6b11e3..93c0f02 100644 --- a/src/kernels/complex.cl +++ b/src/kernels/complex.cl @@ -63,10 +63,12 @@ c_div (global float *in1, } kernel void -c_conj (global float *data) +c_conj (global float *data, + global float *out) { int idx = get_global_id(1) * 2 * get_global_size(0) + 2 * get_global_id(0); - data[idx+1] = -data[idx+1]; + out[idx] = data[idx]; + out[idx+1] = -data[idx+1]; } /** -- cgit v1.2.3