mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 22:44:02 +08:00
Replace halide_opencl_device_interface
This commit is contained in:
parent
da0a36c323
commit
b1ef44b1ac
@ -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…
Reference in New Issue
Block a user