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
cf3bae10
Commit
cf3bae10
authored
Nov 06, 2017
by
Jaikrishnan Menon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CMake: Predicate LLVM and MKL-DNN integration into ngraph under
NGRAPH_CPU_ENABLE
parent
11b612ca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
CMakeLists.txt
src/ngraph/CMakeLists.txt
+6
-5
No files found.
src/ngraph/CMakeLists.txt
View file @
cf3bae10
...
...
@@ -99,7 +99,8 @@ include_directories(
"
${
EIGEN_INCLUDE_DIR
}
"
)
if
(
LLVM_INCLUDE_DIR AND MKLDNN_INCLUDE_DIR
)
if
(
NGRAPH_CPU_ENABLE AND LLVM_INCLUDE_DIR AND
MKLDNN_INCLUDE_DIR
)
find_package
(
ZLIB REQUIRED
)
include_directories
(
SYSTEM
${
LLVM_INCLUDE_DIR
}
${
MKLDNN_INCLUDE_DIR
}
)
...
...
@@ -131,7 +132,7 @@ endif()
add_library
(
ngraph SHARED
${
SRC
}
)
target_include_directories
(
ngraph PUBLIC
"
${
NGRAPH_INCLUDE_PATH
}
"
)
if
(
LLVM_LINK_LIBS
)
if
(
NGRAPH_CPU_ENABLE AND
LLVM_LINK_LIBS
)
target_link_libraries
(
ngraph LINK_PRIVATE
${
LLVM_LINK_LIBS
}
)
endif
()
...
...
@@ -141,7 +142,7 @@ if (APPLE)
set_property
(
TARGET ngraph PROPERTY SUFFIX
""
)
endif
()
if
(
MKLDNN_LIB_DIR
)
if
(
NGRAPH_CPU_ENABLE AND
MKLDNN_LIB_DIR
)
target_link_libraries
(
ngraph LINK_PRIVATE mkldnn
)
endif
()
...
...
@@ -182,10 +183,10 @@ endif()
add_dependencies
(
ngraph eigen
)
if
(
N
OT LLVM_PACKAGED
AND LLVM_INCLUDE_DIR
)
if
(
N
GRAPH_CPU_ENABLE
AND LLVM_INCLUDE_DIR
)
add_dependencies
(
ngraph ext_llvm
)
endif
()
if
(
MKLDNN_INCLUDE_DIR
)
if
(
NGRAPH_CPU_ENABLE AND
MKLDNN_INCLUDE_DIR
)
add_dependencies
(
ngraph ext_mkldnn
)
endif
()
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