arrayfire · GitHub

Commit 5e88e4a

committed

Fix memory alloc for fast opencl

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/backend/opencl/kernel

Lines changed: 1 addition & 1 deletion

Original file line numberDiff line numberDiff line change

@@ -95,7 +95,7 @@ void fast(const unsigned arc_length,

9595
9696

cl::Buffer *d_flags = d_score;

9797

if (nonmax) {

98-

d_flags = bufferAlloc(in.info.dims[0] * in.info.dims[1] * sizeof(T));

98+

d_flags = bufferAlloc(in.info.dims[0] * in.info.dims[1] * sizeof(float));

9999

}

100100
101101

const int blk_x = divup(in.info.dims[0]-edge*2, FAST_THREADS_X);

0 commit comments

Comments

 (0)

Read the original on github.com ↗