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
f56eed6b
Commit
f56eed6b
authored
Jun 06, 2018
by
Robert Kimball
Committed by
Scott Cyphers
Jun 06, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
turn off building mkldnn tests and examples. set the suffix for shared libraries. (#1083)
parent
bb5c7f07
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
external_llvm_prebuilt.cmake
cmake/external_llvm_prebuilt.cmake
+2
-0
external_mkldnn.cmake
cmake/external_mkldnn.cmake
+7
-3
No files found.
cmake/external_llvm_prebuilt.cmake
View file @
f56eed6b
...
...
@@ -39,6 +39,7 @@ if(${CMAKE_VERSION} VERSION_LESS 3.2)
BUILD_COMMAND
""
INSTALL_COMMAND
""
UPDATE_COMMAND
""
DOWNLOAD_NO_PROGRESS TRUE
EXCLUDE_FROM_ALL TRUE
)
else
()
...
...
@@ -50,6 +51,7 @@ else()
BUILD_COMMAND
""
INSTALL_COMMAND
""
UPDATE_COMMAND
""
DOWNLOAD_NO_PROGRESS TRUE
BUILD_BYPRODUCTS
"
${
CMAKE_CURRENT_BINARY_DIR
}
/ext_llvm-prefix/src/ext_llvm/lib/libLLVMCore.a"
EXCLUDE_FROM_ALL TRUE
)
...
...
cmake/external_mkldnn.cmake
View file @
f56eed6b
...
...
@@ -54,6 +54,8 @@ if(${CMAKE_VERSION} VERSION_LESS 3.2)
# Uncomment below with any in-flight MKL-DNN patches
# PATCH_COMMAND patch -p1 < ${CMAKE_SOURCE_DIR}/third-party/patches/mkldnn-cmake-openmp.patch
CMAKE_ARGS
-DWITH_TEST=FALSE
-DWITH_EXAMPLE=FALSE
-DCMAKE_BUILD_TYPE=
${
CMAKE_BUILD_TYPE
}
-DCMAKE_C_COMPILER=
${
CMAKE_C_COMPILER
}
-DCMAKE_CXX_COMPILER=
${
CMAKE_CXX_COMPILER
}
...
...
@@ -75,6 +77,8 @@ else()
# Uncomment below with any in-flight MKL-DNN patches
# PATCH_COMMAND patch -p1 < ${CMAKE_SOURCE_DIR}/third-party/patches/mkldnn-cmake-openmp.patch
CMAKE_ARGS
-DWITH_TEST=FALSE
-DWITH_EXAMPLE=FALSE
-DCMAKE_BUILD_TYPE=
${
CMAKE_BUILD_TYPE
}
-DCMAKE_C_COMPILER=
${
CMAKE_C_COMPILER
}
-DCMAKE_CXX_COMPILER=
${
CMAKE_CXX_COMPILER
}
...
...
@@ -103,9 +107,9 @@ ExternalProject_Add_Step(
add_library
(
libmkldnn INTERFACE
)
target_include_directories
(
libmkldnn SYSTEM INTERFACE
${
EXTERNAL_PROJECTS_ROOT
}
/mkldnn/include
)
target_link_libraries
(
libmkldnn INTERFACE
${
EXTERNAL_PROJECTS_ROOT
}
/mkldnn/lib/libmkldnn
.so
${
EXTERNAL_PROJECTS_ROOT
}
/mkldnn/lib/libmklml_intel
.so
${
EXTERNAL_PROJECTS_ROOT
}
/mkldnn/lib/libiomp5
.so
${
EXTERNAL_PROJECTS_ROOT
}
/mkldnn/lib/libmkldnn
${
CMAKE_SHARED_LIBRARY_SUFFIX
}
${
EXTERNAL_PROJECTS_ROOT
}
/mkldnn/lib/libmklml_intel
${
CMAKE_SHARED_LIBRARY_SUFFIX
}
${
EXTERNAL_PROJECTS_ROOT
}
/mkldnn/lib/libiomp5
${
CMAKE_SHARED_LIBRARY_SUFFIX
}
)
install
(
DIRECTORY
${
EXTERNAL_PROJECTS_ROOT
}
/mkldnn/lib/ DESTINATION
${
NGRAPH_INSTALL_LIB
}
)
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