Commit f9ac1665 authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #9983 from dkurt:fix_halide_copy_to_device

parents 942672ad 14af2a0c
...@@ -105,7 +105,7 @@ HalideBackendWrapper::HalideBackendWrapper(int targetId, const cv::Mat& m) ...@@ -105,7 +105,7 @@ HalideBackendWrapper::HalideBackendWrapper(int targetId, const cv::Mat& m)
{ {
Halide::Target t = Halide::get_host_target(); Halide::Target t = Halide::get_host_target();
t.set_feature(Halide::Target::OpenCL); t.set_feature(Halide::Target::OpenCL);
buffer.copy_to_device(get_default_device_interface_for_target(t)); buffer.copy_to_device(t);
} }
else else
CV_Error(Error::StsNotImplemented, "Unknown target identifier"); CV_Error(Error::StsNotImplemented, "Unknown target identifier");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment