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
4be4a95b
Commit
4be4a95b
authored
Nov 21, 2017
by
Robert Kimball
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make CPU backend enabled by default
parent
5cf027bf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
external_llvm.cmake
cmake/external_llvm.cmake
+1
-1
CMakeLists.txt
src/ngraph/CMakeLists.txt
+6
-6
No files found.
cmake/external_llvm.cmake
View file @
4be4a95b
...
...
@@ -13,7 +13,7 @@
include
(
ExternalProject
)
if
(
NGRAPH_CPU_ENABLE
AND
(
NOT
${
CMAKE_SYSTEM_NAME
}
MATCHES
"Darwin"
)
AND
if
((
NOT
${
CMAKE_SYSTEM_NAME
}
MATCHES
"Darwin"
)
AND
(
NOT
${
CMAKE_SYSTEM_NAME
}
MATCHES
"Windows"
))
message
(
STATUS
"Fetching LLVM from llvm.org"
)
set
(
LLVM_RELEASE_URL http://releases.llvm.org/5.0.0/clang+llvm-5.0.0-linux-x86_64-ubuntu16.04.tar.xz
)
...
...
src/ngraph/CMakeLists.txt
View file @
4be4a95b
...
...
@@ -95,7 +95,7 @@ include_directories(
"
${
EIGEN_INCLUDE_DIR
}
"
)
if
(
NGRAPH_CPU_ENABLE AND
LLVM_INCLUDE_DIR AND
if
(
LLVM_INCLUDE_DIR AND
MKLDNN_INCLUDE_DIR
)
find_package
(
ZLIB REQUIRED
)
...
...
@@ -162,7 +162,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
)
if
(
LLVM_LINK_LIBS
)
target_link_libraries
(
ngraph PRIVATE
${
LLVM_LINK_LIBS
}
)
endif
()
...
...
@@ -172,7 +172,7 @@ if (APPLE)
set_property
(
TARGET ngraph PROPERTY SUFFIX
""
)
endif
()
if
(
NGRAPH_CPU_ENABLE AND
MKLDNN_LIB_DIR
)
if
(
MKLDNN_LIB_DIR
)
target_link_libraries
(
ngraph PRIVATE mkldnn
)
endif
()
...
...
@@ -211,7 +211,7 @@ install(DIRECTORY
DESTINATION
"
${
NGRAPH_INSTALL_LIB
}
"
)
endif
()
if
(
NGRAPH_CPU_ENABLE AND
LLVM_INCLUDE_DIR AND
if
(
LLVM_INCLUDE_DIR AND
MKLDNN_INCLUDE_DIR
)
# Currently this is required for Argon codegen. To avoid this, we'll need to decouple LLVM from
# compiler.hpp
...
...
@@ -227,10 +227,10 @@ endif()
add_dependencies
(
ngraph eigen
)
if
(
NGRAPH_CPU_ENABLE AND
LLVM_INCLUDE_DIR
)
if
(
LLVM_INCLUDE_DIR
)
add_dependencies
(
ngraph ext_llvm
)
endif
()
if
(
NGRAPH_CPU_ENABLE AND
MKLDNN_INCLUDE_DIR
)
if
(
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