Publishing 2019 R1 content
[platform/upstream/dldt.git] / inference-engine / src / gna_plugin / gna_plugin_entry_points.cpp
1 // Copyright (C) 2018-2019 Intel Corporation
2 // SPDX-License-Identifier: Apache-2.0
3 //
4
5 #include <memory>
6 #include <ie_plugin.hpp>
7 #include <cpp_interfaces/base/ie_plugin_base.hpp>
8 #include "gna_plugin_internal.hpp"
9
10 using namespace InferenceEngine;
11 using namespace std;
12 using namespace GNAPluginNS;
13
14 INFERENCE_PLUGIN_API(StatusCode) CreatePluginEngine(IInferencePlugin *&plugin, ResponseDesc *resp) noexcept {
15     try {
16         plugin = make_ie_compatible_plugin({1, 6, "GNAPlugin", "GNAPlugin"}, make_shared<GNAPluginInternal>());
17         return OK;
18     }
19     catch (std::exception &ex) {
20         return DescriptionBuffer(GENERAL_ERROR, resp) << ex.what();
21     }
22 }