Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
N
ngraph
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ngraph
Commits
d2fe5723
Commit
d2fe5723
authored
Jun 21, 2019
by
Robert Kimball
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
interpreter working static
parent
4d62a0f3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
23 deletions
+33
-23
CMakeLists.txt
CMakeLists.txt
+2
-0
CMakeLists.txt
src/ngraph/CMakeLists.txt
+23
-21
CMakeLists.txt
src/ngraph/runtime/interpreter/CMakeLists.txt
+7
-1
int_backend.cpp
src/ngraph/runtime/interpreter/int_backend.cpp
+1
-1
No files found.
CMakeLists.txt
View file @
d2fe5723
...
...
@@ -249,6 +249,7 @@ NORMALIZE_BOOL(NGRAPH_PYTHON_BUILD_ENABLE)
NORMALIZE_BOOL
(
NGRAPH_USE_PREBUILT_LLVM
)
NORMALIZE_BOOL
(
NGRAPH_PLAIDML_ENABLE
)
NORMALIZE_BOOL
(
NGRAPH_JSON_ENABLE
)
NORMALIZE_BOOL
(
NGRAPH_STATIC_LIB_ENABLE
)
message
(
STATUS
"NGRAPH_UNIT_TEST_ENABLE:
${
NGRAPH_UNIT_TEST_ENABLE
}
"
)
message
(
STATUS
"NGRAPH_TOOLS_ENABLE:
${
NGRAPH_TOOLS_ENABLE
}
"
)
...
...
@@ -271,6 +272,7 @@ message(STATUS "NGRAPH_USE_PREBUILT_LLVM: ${NGRAPH_USE_PREBUILT_LLVM}")
message
(
STATUS
"NGRAPH_PLAIDML_ENABLE:
${
NGRAPH_PLAIDML_ENABLE
}
"
)
message
(
STATUS
"NGRAPH_DISTRIBUTED_ENABLE:
${
NGRAPH_DISTRIBUTED_ENABLE
}
"
)
message
(
STATUS
"NGRAPH_JSON_ENABLE:
${
NGRAPH_JSON_ENABLE
}
"
)
message
(
STATUS
"NGRAPH_STATIC_LIB_ENABLE:
${
NGRAPH_STATIC_LIB_ENABLE
}
"
)
#-----------------------------------------------------------------------------------------------
# Installation logic...
...
...
src/ngraph/CMakeLists.txt
View file @
d2fe5723
...
...
@@ -486,34 +486,36 @@ configure_file(version.in.hpp version.hpp)
if
(
NGRAPH_STATIC_LIB_ENABLE
)
add_library
(
ngraph STATIC
${
SRC
}
)
target_compile_definitions
(
ngraph PUBLIC INTERPRETER_BACKEND_STATIC
)
if
(
NGRAPH_CPU_ENABLE
)
target_compile_definitions
(
ngraph PUBLIC CPU_BACKEND_STATIC
)
if
(
NGRAPH_INTERPRETER_ENABLE
)
target_compile_definitions
(
ngraph PUBLIC INTERPRETER_BACKEND_STATIC
)
endif
()
# if (NGRAPH_CPU_ENABLE)
# target_compile_definitions(ngraph PUBLIC CPU_BACKEND_STATIC)
# endif()
if
(
NGRAPH_INTELGPU_ENABLE
)
target_compile_definitions
(
ngraph PUBLIC INTELGPU_BACKEND_STATIC
)
endif
()
#
if (NGRAPH_INTELGPU_ENABLE)
#
target_compile_definitions(ngraph PUBLIC INTELGPU_BACKEND_STATIC)
#
endif()
if
(
NGRAPH_GPU_ENABLE
)
target_compile_definitions
(
ngraph PUBLIC GPU_BACKEND_STATIC
)
endif
()
#
if (NGRAPH_GPU_ENABLE)
#
target_compile_definitions(ngraph PUBLIC GPU_BACKEND_STATIC)
#
endif()
if
(
NGRAPH_NOP_ENABLE
)
target_compile_definitions
(
ngraph PUBLIC NOP_BACKEND_STATIC
)
endif
()
#
if (NGRAPH_NOP_ENABLE)
#
target_compile_definitions(ngraph PUBLIC NOP_BACKEND_STATIC)
#
endif()
if
(
NGRAPH_GPUH_ENABLE
)
target_compile_definitions
(
ngraph PUBLIC GPUH_BACKEND_STATIC
)
endif
()
#
if (NGRAPH_GPUH_ENABLE)
#
target_compile_definitions(ngraph PUBLIC GPUH_BACKEND_STATIC)
#
endif()
if
(
NGRAPH_GENERIC_CPU_ENABLE
)
target_compile_definitions
(
ngraph PUBLIC GENERIC_CPU_BACKEND_STATIC
)
endif
()
#
if (NGRAPH_GENERIC_CPU_ENABLE)
#
target_compile_definitions(ngraph PUBLIC GENERIC_CPU_BACKEND_STATIC)
#
endif()
if
(
NGRAPH_PLAIDML_ENABLE
)
target_compile_definitions
(
ngraph PUBLIC PLAIDML_BACKEND_STATIC
)
endif
()
#
if (NGRAPH_PLAIDML_ENABLE)
#
target_compile_definitions(ngraph PUBLIC PLAIDML_BACKEND_STATIC)
#
endif()
else
()
add_library
(
ngraph SHARED
${
SRC
}
)
endif
()
...
...
src/ngraph/runtime/interpreter/CMakeLists.txt
View file @
d2fe5723
...
...
@@ -14,8 +14,14 @@
# limitations under the License.
# ******************************************************************************
if
(
NGRAPH_STATIC_LIB_ENABLE
)
set
(
LIBRARY_TYPE STATIC
)
else
()
set
(
LIBRARY_TYPE SHARED
)
endif
()
if
(
NGRAPH_INTERPRETER_ENABLE
)
add_library
(
interpreter_backend
STATIC
int_backend.cpp node_wrapper.cpp int_executable.cpp
)
add_library
(
interpreter_backend
${
LIBRARY_TYPE
}
int_backend.cpp node_wrapper.cpp int_executable.cpp
)
if
(
NGRAPH_LIB_VERSIONING_ENABLE
)
set_target_properties
(
interpreter_backend PROPERTIES
VERSION
${
NGRAPH_VERSION
}
...
...
src/ngraph/runtime/interpreter/int_backend.cpp
View file @
d2fe5723
...
...
@@ -43,7 +43,7 @@ static runtime::BackendConstructor* interpreter_get_backend_constructor_pointer(
return
s_backend_constructor
.
get
();
}
#ifdef INTERPRETER_BACKEND_STATIC
#if
n
def INTERPRETER_BACKEND_STATIC
extern
"C"
runtime
::
BackendConstructor
*
get_backend_constructor_pointer
()
{
return
interpreter_get_backend_constructor_pointer
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment