Browse Source

Merge branch '1.0'

Peter Colberg 1 year ago
parent
commit
fe1c2013b0
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      test/hilbert.lua

+ 2
- 2
test/hilbert.lua View File

@@ -22,7 +22,7 @@ do
22 22
   local program = compute.program(context, "hilbert.cl", {M = M})
23 23
 
24 24
   local N = 2^(M[1]+M[2])
25
-  local d_bin = context:create_buffer(N*ffi.sizeof("cl_uint3"))
25
+  local d_bin = context:create_buffer(N*ffi.sizeof("cl_uint2"))
26 26
   local kernel = program:create_kernel("test_hilbert")
27 27
   kernel:set_arg(0, d_bin)
28 28
   queue:enqueue_ndrange_kernel(kernel, nil, {N})
@@ -79,7 +79,7 @@ do
79 79
   local program = compute.program(context, "hilbert.cl", {M = M})
80 80
 
81 81
   local N = 2^(M[1]+M[2]+M[3]+M[4])
82
-  local d_bin = context:create_buffer(N*ffi.sizeof("cl_uint3"))
82
+  local d_bin = context:create_buffer(N*ffi.sizeof("cl_uint4"))
83 83
   local kernel = program:create_kernel("test_hilbert")
84 84
   kernel:set_arg(0, d_bin)
85 85
   queue:enqueue_ndrange_kernel(kernel, nil, {N})

Loading…
Cancel
Save