Unverified Commit 3f4055c1 authored by Scott Cyphers's avatar Scott Cyphers Committed by GitHub

Export backend function on windows (#3377)

parent 520db227
......@@ -52,7 +52,7 @@ runtime::BackendConstructor* runtime::cpu::get_backend_constructor_pointer()
}
#if !defined(NGRAPH_CPU_STATIC_LIB_ENABLE)
extern "C" runtime::BackendConstructor* get_backend_constructor_pointer()
extern "C" CPU_BACKEND_API runtime::BackendConstructor* get_backend_constructor_pointer()
{
return runtime::cpu::get_backend_constructor_pointer();
}
......
......@@ -16,6 +16,7 @@
#include "ngraph/runtime/backend_manager.hpp"
#include "ngraph/runtime/plaidml/plaidml_backend.hpp"
#include "ngraph/runtime/plaidml/plaidml_backend_visibility.hpp"
namespace ngraph
{
......@@ -42,7 +43,8 @@ std::shared_ptr<ngraph::runtime::Backend>
return std::make_shared<PlaidML_Backend>(config);
}
extern "C" ngraph::runtime::BackendConstructor* get_backend_constructor_pointer()
extern "C" PLAIDML_BACKEND_API ngraph::runtime::BackendConstructor*
get_backend_constructor_pointer()
{
static ngraph::runtime::plaidml::PlaidML_BackendConstructor backend_constructor;
return &backend_constructor;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment