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
6425a516
Unverified
Commit
6425a516
authored
May 22, 2018
by
Robert Kimball
Committed by
GitHub
May 22, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix building with mpi on local machine (#1027)
parent
98740cd7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
CMakeLists.txt
src/ngraph/CMakeLists.txt
+2
-0
compiler.cpp
src/ngraph/codegen/compiler.cpp
+9
-5
No files found.
src/ngraph/CMakeLists.txt
View file @
6425a516
...
@@ -251,6 +251,8 @@ if (NGRAPH_CPU_ENABLE AND LLVM_INCLUDE_DIR AND MKLDNN_INCLUDE_DIR)
...
@@ -251,6 +251,8 @@ if (NGRAPH_CPU_ENABLE AND LLVM_INCLUDE_DIR AND MKLDNN_INCLUDE_DIR)
set
(
NGRAPH_CPU_DEBUGINFO_ENABLE 0 CACHE STRING
"Enable debuginfo in the CPU backend"
)
set
(
NGRAPH_CPU_DEBUGINFO_ENABLE 0 CACHE STRING
"Enable debuginfo in the CPU backend"
)
if
(
NGRAPH_DISTRIBUTED_ENABLE AND MPI_CXX_INCLUDE_PATH
)
if
(
NGRAPH_DISTRIBUTED_ENABLE AND MPI_CXX_INCLUDE_PATH
)
find_package
(
MPI REQUIRED
)
string
(
REPLACE
";"
"
\\
;"
MPI_C_INCLUDE_PATH
"
${
MPI_C_INCLUDE_PATH
}
"
)
include_directories
(
SYSTEM
${
MPI_C_INCLUDE_PATH
}
${
MPI_CXX_INCLUDE_PATH
}
)
include_directories
(
SYSTEM
${
MPI_C_INCLUDE_PATH
}
${
MPI_CXX_INCLUDE_PATH
}
)
link_directories
(
${
MPI_C_LIBRARIES
}
${
MPI_CXX_LIBRARIES
}
)
link_directories
(
${
MPI_C_LIBRARIES
}
${
MPI_CXX_LIBRARIES
}
)
...
...
src/ngraph/codegen/compiler.cpp
View file @
6425a516
...
@@ -260,13 +260,17 @@ bool codegen::StaticCompiler::is_version_number(const string& path)
...
@@ -260,13 +260,17 @@ bool codegen::StaticCompiler::is_version_number(const string& path)
return
rc
;
return
rc
;
}
}
void
codegen
::
StaticCompiler
::
add_header_search_path
(
const
string
&
p
ath
)
void
codegen
::
StaticCompiler
::
add_header_search_path
(
const
string
&
p
)
{
{
if
(
!
contains
(
m_extra_search_path_list
,
path
))
vector
<
string
>
paths
=
split
(
p
,
';'
);
for
(
const
string
&
path
:
paths
)
{
{
m_extra_search_path_list
.
push_back
(
path
);
if
(
!
contains
(
m_extra_search_path_list
,
path
))
HeaderSearchOptions
&
hso
=
m_compiler
->
getInvocation
().
getHeaderSearchOpts
();
{
hso
.
AddPath
(
path
,
clang
::
frontend
::
System
,
false
,
false
);
m_extra_search_path_list
.
push_back
(
path
);
HeaderSearchOptions
&
hso
=
m_compiler
->
getInvocation
().
getHeaderSearchOpts
();
hso
.
AddPath
(
path
,
clang
::
frontend
::
System
,
false
,
false
);
}
}
}
}
}
...
...
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