[arrayfire] 71/248: Fix memory alloc for fast opencl
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Tue Nov 17 15:54:04 UTC 2015
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch dfsg-clean
in repository arrayfire.
commit 5e88e4a23a9996c24098996939f77e1f8cd883f7
Author: Shehzan Mohammed <shehzan at arrayfire.com>
Date: Tue Sep 22 17:40:48 2015 -0400
Fix memory alloc for fast opencl
---
src/backend/opencl/kernel/fast.hpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/backend/opencl/kernel/fast.hpp b/src/backend/opencl/kernel/fast.hpp
index fcc5a6c..1a1354f 100644
--- a/src/backend/opencl/kernel/fast.hpp
+++ b/src/backend/opencl/kernel/fast.hpp
@@ -95,7 +95,7 @@ void fast(const unsigned arc_length,
cl::Buffer *d_flags = d_score;
if (nonmax) {
- d_flags = bufferAlloc(in.info.dims[0] * in.info.dims[1] * sizeof(T));
+ d_flags = bufferAlloc(in.info.dims[0] * in.info.dims[1] * sizeof(float));
}
const int blk_x = divup(in.info.dims[0]-edge*2, FAST_THREADS_X);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/arrayfire.git
More information about the debian-science-commits
mailing list