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
8986a83e
Commit
8986a83e
authored
Feb 22, 2018
by
fenglei.tian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revert to master cmakelist, add a ;
parent
35646d4f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
CMakeLists.txt
src/ngraph/CMakeLists.txt
+7
-8
No files found.
src/ngraph/CMakeLists.txt
View file @
8986a83e
...
...
@@ -206,6 +206,7 @@ if (NGRAPH_CPU_ENABLE AND LLVM_INCLUDE_DIR AND
"NGRAPH_TBB_ENABLE"
)
endif
()
set_source_files_properties
(
codegen/compiler.cpp PROPERTIES COMPILE_DEFINITIONS
"
${
HEADER_SEARCH_DEFINES
}
;"
)
set
(
NGRAPH_CPU_DEBUGINFO_ENABLE 0 CACHE STRING
"Enable debuginfo in the CPU backend"
)
if
(
NGRAPH_DISTRIBUTED_ENABLE AND MPI_CXX_INCLUDE_PATH
)
...
...
@@ -217,15 +218,15 @@ if(NGRAPH_DISTRIBUTED_ENABLE AND MPI_CXX_INCLUDE_PATH)
set
(
SRC
${
SRC
}
ops/allreduce.cpp
)
set
(
HEADER_SEARCH_DEFINES
${
HEADER_SEARCH_DEFINES
}
"MPI_HEADER_PATH=
\"
${
MPI_C_INCLUE_PATH
}
\"
"
)
set_property
(
SOURCE codegen/compiler.cpp APPEND PROPERTY COMPILE_DEFINITIONS
"MPI_HEADER_PATH=
\"
${
MPI_C_INCLUDE_PATH
}
\"
;"
)
endif
()
# GPU backend current requires CPU because they share compiler.cpp,
# and compiler.cpp requires MKLDNN
if
(
NGRAPH_GPU_ENABLE
)
include_directories
(
SYSTEM
${
CUDA_INCLUDE_DIRS
}
${
CUDNN_INCLUDE_DIR
}
)
include_directories
(
SYSTEM
${
CUDA_INCLUDE_DIRS
}
${
CUDNN_INCLUDE_DIRS
}
)
# Add sources for the GPU backend
# and all its dependencies
set
(
SRC
${
SRC
}
...
...
@@ -239,11 +240,9 @@ endif()
runtime/gpu/gpu_tensor_view_wrapper.cpp
runtime/gpu/gpu_util.cpp
)
set
(
HEADER_SEARCH_DEFINES
${
HEADER_SEARCH_DEFINES
}
"CUDA_HEADER_PATHS=
\"
${
CUDA_INCLUDE_DIRS
}
\"
"
)
set_property
(
SOURCE codegen/compiler.cpp APPEND_STRING PROPERTY COMPILE_DEFINITIONS
"CUDA_HEADER_PATHS=
\"
${
CUDA_INCLUDE_DIRS
}
\"
;"
)
endif
()
set_source_files_properties
(
codegen/compiler.cpp PROPERTIES COMPILE_DEFINITIONS
"
${
HEADER_SEARCH_DEFINES
}
"
)
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