Add implementation in case plaidml isn't found
This commit is contained in:
@@ -5,12 +5,14 @@
|
||||
// Copyright (C) 2019 Intel Corporation
|
||||
|
||||
|
||||
#ifdef HAVE_PLAIDML
|
||||
|
||||
#include "precomp.hpp"
|
||||
|
||||
#include <opencv2/gapi/core.hpp>
|
||||
|
||||
#include <opencv2/gapi/plaidml/core.hpp>
|
||||
|
||||
#ifdef HAVE_PLAIDML
|
||||
|
||||
#include <opencv2/gapi/plaidml/gplaidmlkernel.hpp>
|
||||
|
||||
#include <plaidml2/edsl/edsl.h>
|
||||
@@ -51,4 +53,12 @@ cv::gapi::GKernelPackage cv::gapi::core::plaidml::kernels()
|
||||
return pkg;
|
||||
}
|
||||
|
||||
#endif // HACE_PLAIDML
|
||||
#else // HAVE_PLAIDML
|
||||
|
||||
cv::gapi::GKernelPackage cv::gapi::core::plaidml::kernels()
|
||||
{
|
||||
// Still provide this symbol to avoid linking issues
|
||||
util::throw_error(std::runtime_error("G-API has been compiled without PlaidML2 support"));
|
||||
}
|
||||
|
||||
#endif // HAVE_PLAIDML
|
||||
|
||||
Reference in New Issue
Block a user