Commit 25d91704 authored by Markus Holzer's avatar Markus Holzer
Browse files

Fixed pycuda warning

parent f888c012
......@@ -39,7 +39,8 @@ def _generate_fields(dt=np.uint8, stencil_directions=1, layout='numpy'):
gpu_src_arr = gpuarray.to_gpu(src_arr)
gpu_dst_arr = gpuarray.zeros_like(gpu_src_arr)
gpu_buffer_arr = gpuarray.zeros(np.prod(src_arr.shape), dtype=dt)
size = int(np.prod(src_arr.shape))
gpu_buffer_arr = gpuarray.zeros(size, dtype=dt)
fields.append((src_arr, gpu_src_arr, gpu_dst_arr, gpu_buffer_arr))
return fields
......
......@@ -39,7 +39,7 @@ exclude_lines =
if __name__ == .__main__.:
skip_covered = True
fail_under = 74
fail_under = 75
[html]
directory = coverage_report
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment