Replace halide_opencl_device_interface

pull/9296/head
dkurt 8 years ago
parent da0a36c323
commit b1ef44b1ac
  1. 4
      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");

Loading…
Cancel
Save