mirror of
https://github.com/opencv/opencv.git
synced 2025-07-24 14:06:27 +08:00
Merge pull request #9296 from dkurt:halide_device_interface
This commit is contained in:
commit
0bd357e7ec
@ -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