-
Notifications
You must be signed in to change notification settings - Fork 248
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
integrate OpenCL into OpenVINO to enable clDNN
Tracked-On: OAM-86770 Signed-off-by: dengliqiang <liqiangx.deng@intel.com>
- Loading branch information
Showing
4 changed files
with
1,245 additions
and
0 deletions.
There are no files selected for viewing
48 changes: 48 additions & 0 deletions
48
...ternal/project-celadon/dldt/0002-Enable-cldnn-and-cldnn_plugin-compiling-in-Celadon.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
From c34a367bd0db1bfac587a4b1444fea2a1de94222 Mon Sep 17 00:00:00 2001 | ||
From: dengliqiang <liqiangx.deng@intel.com> | ||
Date: Mon, 23 Sep 2019 22:40:48 +0800 | ||
Subject: [PATCH] Enable cldnn and cldnn_plugin compiling in Celadon | ||
|
||
Tracked-On: OAM-86770 | ||
Signed-off-by: dengliqiang <liqiangx.deng@intel.com> | ||
--- | ||
inference-engine/src/cldnn_engine/cldnn_engine.cpp | 5 +++++ | ||
inference-engine/src/cldnn_engine/cldnn_infer_request.cpp | 6 +++++- | ||
2 files changed, 10 insertions(+), 1 deletion(-) | ||
|
||
diff --git a/inference-engine/src/cldnn_engine/cldnn_engine.cpp b/inference-engine/src/cldnn_engine/cldnn_engine.cpp | ||
index 4b79fe6e..0f3fdf27 100644 | ||
--- a/inference-engine/src/cldnn_engine/cldnn_engine.cpp | ||
+++ b/inference-engine/src/cldnn_engine/cldnn_engine.cpp | ||
@@ -38,6 +38,11 @@ using InferenceEngine::Blob; | ||
using namespace InferenceEngine; | ||
using namespace details; | ||
|
||
+#if defined(__ANDROID__) | ||
+#define CI_BUILD_NUMBER "custom-master-android-nn" | ||
+#endif | ||
+ | ||
+ | ||
namespace CLDNNPlugin { | ||
|
||
struct clDNNEngine::impl { | ||
diff --git a/inference-engine/src/cldnn_engine/cldnn_infer_request.cpp b/inference-engine/src/cldnn_engine/cldnn_infer_request.cpp | ||
index e36578cf..e7641a98 100644 | ||
--- a/inference-engine/src/cldnn_engine/cldnn_infer_request.cpp | ||
+++ b/inference-engine/src/cldnn_engine/cldnn_infer_request.cpp | ||
@@ -85,7 +85,11 @@ void CLDNNInferRequest::copyOutputData(const cldnn::memory& outputMemory, | ||
|
||
switch (bptr->precision()) { | ||
case Precision::FP32: { | ||
- TBlob<float>::Ptr out_f = std::dynamic_pointer_cast<TBlob<float>>(bptr); | ||
+#if defined(__ANDROID__) | ||
+ TBlob<float>::Ptr out_f = std::static_pointer_cast<TBlob<float> >(bptr); | ||
+#else | ||
+ TBlob<float>::Ptr out_f = std::dynamic_pointer_cast<TBlob<float> >(bptr); | ||
+#endif | ||
if (out_f == nullptr) { | ||
THROW_IE_EXCEPTION << "Invalid output blob"; | ||
} | ||
-- | ||
2.23.0 | ||
|
Oops, something went wrong.