[opencv] 219/251: Replace halide_opencl_device_interface

Nobuhiro Iwamatsu iwamatsu at moszumanska.debian.org
Sun Aug 27 23:27:45 UTC 2017


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

iwamatsu pushed a commit to annotated tag 3.3.0
in repository opencv.

commit b1ef44b1acd57fb0949bdd0e1a67118580c74c85
Author: dkurt <dmitry.kurtaev+github at gmail.com>
Date:   Wed Aug 2 20:38:30 2017 +0300

    Replace halide_opencl_device_interface
---
 modules/dnn/src/op_halide.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/modules/dnn/src/op_halide.cpp b/modules/dnn/src/op_halide.cpp
index 09e38f9..dc46ace 100644
--- a/modules/dnn/src/op_halide.cpp
+++ b/modules/dnn/src/op_halide.cpp
@@ -83,7 +83,9 @@ HalideBackendWrapper::HalideBackendWrapper(int targetId, const cv::Mat& m)
     }
     else if (targetId == DNN_TARGET_OPENCL)
     {
-        buffer.copy_to_device(halide_opencl_device_interface());
+        Halide::Target t = Halide::get_host_target();
+        t.set_feature(Halide::Target::OpenCL);
+        buffer.copy_to_device(get_default_device_interface_for_target(t));
     }
     else
         CV_Error(Error::StsNotImplemented, "Unknown target identifier");

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/opencv.git



More information about the debian-science-commits mailing list