[arrayfire] 272/408: Added missing buffer freeing call to OpenCL SIFT

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Mon Sep 21 19:12:12 UTC 2015


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch debian/sid
in repository arrayfire.

commit 45a49663c9c6574f306e9938f809d84c01031f1e
Author: Peter Andreas Entschev <peter at arrayfire.com>
Date:   Mon Aug 17 15:37:59 2015 -0400

    Added missing buffer freeing call to OpenCL SIFT
---
 src/backend/opencl/kernel/sift.hpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/opencl/kernel/sift.hpp b/src/backend/opencl/kernel/sift.hpp
index b8fc8bd..5fcead5 100644
--- a/src/backend/opencl/kernel/sift.hpp
+++ b/src/backend/opencl/kernel/sift.hpp
@@ -598,7 +598,6 @@ void sift(unsigned* out_feat,
                  *d_interp_response, *d_interp_size, interp_feat);
             CL_DEBUG_FINISH(getQueue());
 
-
             getQueue().enqueueReadBuffer(*d_count, CL_TRUE, 0, sizeof(unsigned), &nodup_feat);
             nodup_feat = min(nodup_feat, interp_feat);
 
@@ -687,6 +686,8 @@ void sift(unsigned* out_feat,
             }
         }
 
+        bufferFree(d_count);
+
         // If no features are found, set found features to 0 and return
         if (total_feat == 0) {
             *out_feat = 0;

-- 
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