Skip to content
Snippets Groups Projects
Commit 46fff7a5 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Merge branch 'master' of http://git.tiker.net/trees/pyopencl

parents 326f1a19 77ce32eb
Branches
Tags
No related merge requests found
...@@ -50,7 +50,5 @@ c_gpu_real = cl_array.empty(ctx, len(a_gpu), dtype=numpy.float32, queue=queue) ...@@ -50,7 +50,5 @@ c_gpu_real = cl_array.empty(ctx, len(a_gpu), dtype=numpy.float32, queue=queue)
real_part(c_gpu, c_gpu_real) real_part(c_gpu, c_gpu_real)
print c_gpu.get().real - c_gpu_real.get() print c_gpu.get().real - c_gpu_real.get()
print a_gpu + b_gpu
print la.norm(c_gpu.get() - (5*a_gpu.get()*b_gpu.get())) print la.norm(c_gpu.get() - (5*a_gpu.get()*b_gpu.get()))
assert la.norm(c_gpu.get() - (5*a_gpu.get()*b_gpu.get())) < 1e-5 assert la.norm(c_gpu.get() - (5*a_gpu.get()*b_gpu.get())) < 1e-5
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment