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
9a7203ce
Commit
9a7203ce
authored
Nov 16, 2017
by
Robert Kimball
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into bob/static_compiler
parents
68c24ab8
7b9b35d3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
CMakeLists.txt
src/ngraph/CMakeLists.txt
+8
-2
CMakeLists.txt
test/CMakeLists.txt
+6
-0
No files found.
src/ngraph/CMakeLists.txt
View file @
9a7203ce
...
...
@@ -130,6 +130,12 @@ endif()
add_library
(
ngraph SHARED
${
SRC
}
)
# NGraph links against one or more libraries (ex. LLVM) but we don't want to
# export these symbols as part of the DSO. This is a GNU ld (and derivatives) specific
# option so making this portable is still an open issue. As a note for the future,
# this is not an issue on Windows and LLVM's lld does support --exclude-libs.
set_target_properties
(
ngraph PROPERTIES LINK_FLAGS
"-Wl,--exclude-libs,ALL"
)
# Colon separated string for specified runtime plugin loading, this is made explicit s.t. if a
# plugin is specified at compile time but the corresponding library could not be resolved at run-
# time, an error will be generated.
...
...
@@ -155,7 +161,7 @@ message(STATUS "LIBRARY_OUTPUT_DIRECTORY set to: ${COMMON_LIBRARY_OUTPUT_DIRECTO
target_include_directories
(
ngraph PUBLIC
"
${
NGRAPH_INCLUDE_PATH
}
"
)
if
(
NGRAPH_CPU_ENABLE AND LLVM_LINK_LIBS
)
target_link_libraries
(
ngraph
LINK_
PRIVATE
${
LLVM_LINK_LIBS
}
)
target_link_libraries
(
ngraph PRIVATE
${
LLVM_LINK_LIBS
}
)
endif
()
if
(
APPLE
)
...
...
@@ -165,7 +171,7 @@ if (APPLE)
endif
()
if
(
NGRAPH_CPU_ENABLE AND MKLDNN_LIB_DIR
)
target_link_libraries
(
ngraph
LINK_
PRIVATE mkldnn
)
target_link_libraries
(
ngraph PRIVATE mkldnn
)
endif
()
...
...
test/CMakeLists.txt
View file @
9a7203ce
...
...
@@ -62,6 +62,7 @@ endif()
if
(
LLVM_INCLUDE_DIR
)
include_directories
(
SYSTEM
${
LLVM_INCLUDE_DIR
}
)
link_directories
(
${
LLVM_LIB_DIR
}
)
set
(
SRC
${
SRC
}
codegen.cpp
)
set
(
BACKEND_NAMES
${
BACKEND_NAMES
}
"CPU"
)
endif
()
...
...
@@ -82,6 +83,11 @@ if(MKLDNN_INCLUDE_DIR)
add_dependencies
(
unit-test ext_mkldnn
)
endif
()
if
(
LLVM_INCLUDE_DIR
)
target_link_libraries
(
unit-test
${
LLVM_LINK_LIBS
}
)
add_dependencies
(
unit-test ext_llvm
)
endif
()
target_link_libraries
(
unit-test ngraph libgtest pthread
)
target_link_libraries
(
unit-test
${
CMAKE_DL_LIBS
}
)
...
...
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