mirror of
https://github.com/opencv/opencv.git
synced 2024-11-30 06:10:02 +08:00
dnn: add Vulkan device check for BackendRegistry
This commit is contained in:
parent
e1f5b886fb
commit
be6a837e15
@ -137,7 +137,8 @@ private:
|
||||
backends.push_back(std::make_pair(DNN_BACKEND_OPENCV, DNN_TARGET_CPU));
|
||||
|
||||
#ifdef HAVE_VULKAN
|
||||
backends.push_back(std::make_pair(DNN_BACKEND_VKCOM, DNN_TARGET_VULKAN)); // TODO Add device check
|
||||
if (haveVulkan())
|
||||
backends.push_back(std::make_pair(DNN_BACKEND_VKCOM, DNN_TARGET_VULKAN));
|
||||
#endif
|
||||
}
|
||||
static inline bool checkIETarget(int target)
|
||||
|
Loading…
Reference in New Issue
Block a user