Replace halide_opencl_device_interface

This commit is contained in:
dkurt 2017-08-02 20:38:30 +03:00
parent da0a36c323
commit b1ef44b1ac

View File

@ -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");