From 0e413dc2677f7195cb2359dd6ea535482a9ab576 Mon Sep 17 00:00:00 2001 From: jan Date: Mon, 4 Jul 2016 23:05:16 -0700 Subject: [PATCH] fix previous commit --- opencl_fdfd/csr.py | 3 --- opencl_fdfd/ops.py | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/opencl_fdfd/csr.py b/opencl_fdfd/csr.py index e42ad8f..0ac3a03 100644 --- a/opencl_fdfd/csr.py +++ b/opencl_fdfd/csr.py @@ -53,9 +53,6 @@ def cg(a, b, max_iters=10000, err_thresh=1e-6, context=None, queue=None, verbose p_step = ops.create_p_step(context) dot = ops.create_dot(context) - def a_step(E, H, p, events): - return a_step_full(E, H, p, inv_dxes, oeps, invm, gpec, gpmc, Pl, Pr, events) - ''' Start the solve ''' diff --git a/opencl_fdfd/ops.py b/opencl_fdfd/ops.py index 7d51e58..0a4ff87 100644 --- a/opencl_fdfd/ops.py +++ b/opencl_fdfd/ops.py @@ -253,6 +253,6 @@ def create_a_csr(context): arguments=', '.join((v_out_args, m_args, v_in_args))) def spmv(v_out, m, v_in, e): - return spmv_kernel(v_out, m.row_ptr, m.col_ind, m.data, v_in, wait_for=e) + return [spmv_kernel(v_out, m.row_ptr, m.col_ind, m.data, v_in, wait_for=e)] return spmv