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
e30b3c61
Commit
e30b3c61
authored
May 08, 2018
by
Sevin F. Varoglu
Committed by
Robert Kimball
May 08, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor changes for AllReduce (#944)
* Minor changes for AllReduce
parent
682f7b04
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
external_nnp_transformer.cmake
cmake/external_nnp_transformer.cmake
+4
-0
main.cpp
test/main.cpp
+9
-1
No files found.
cmake/external_nnp_transformer.cmake
View file @
e30b3c61
...
...
@@ -71,6 +71,7 @@ if (NGRAPH_NNP_ENABLE)
-DEXTERNAL_NGRAPH_INCLUDE_DIR=
${
NGRAPH_INCLUDE_PATH
}
-DINSTALLED_HEADERS_PATH=
${
CMAKE_INSTALL_PREFIX
}
/include
-DMKLDNN_INCLUDE_DIR=
${
MKLDNN_INCLUDE_DIR
}
-DNGRAPH_DISTRIBUTED_ENABLE=
${
NGRAPH_DISTRIBUTED_ENABLE
}
BUILD_ALWAYS 1
)
else
()
...
...
@@ -89,6 +90,7 @@ if (NGRAPH_NNP_ENABLE)
-DEXTERNAL_NGRAPH_INCLUDE_DIR=
${
NGRAPH_INCLUDE_PATH
}
-DINSTALLED_HEADERS_PATH=
${
CMAKE_INSTALL_PREFIX
}
/include
-DMKLDNN_INCLUDE_DIR=
${
MKLDNN_INCLUDE_DIR
}
-DNGRAPH_DISTRIBUTED_ENABLE=
${
NGRAPH_DISTRIBUTED_ENABLE
}
BUILD_ALWAYS 1
)
endif
()
...
...
@@ -108,6 +110,7 @@ if (NGRAPH_NNP_ENABLE)
-DEXTERNAL_NGRAPH_INCLUDE_DIR=
${
NGRAPH_INCLUDE_PATH
}
-DINSTALLED_HEADERS_PATH=
${
CMAKE_INSTALL_PREFIX
}
/include
-DMKLDNN_INCLUDE_DIR=
${
MKLDNN_INCLUDE_DIR
}
-DNGRAPH_DISTRIBUTED_ENABLE=
${
NGRAPH_DISTRIBUTED_ENABLE
}
BUILD_BYPRODUCTS
${
NNP_TRANSFORMER_PREFIX
}
BUILD_ALWAYS 1
)
...
...
@@ -127,6 +130,7 @@ if (NGRAPH_NNP_ENABLE)
-DEXTERNAL_NGRAPH_INCLUDE_DIR=
${
NGRAPH_INCLUDE_PATH
}
-DINSTALLED_HEADERS_PATH=
${
CMAKE_INSTALL_PREFIX
}
/include
-DMKLDNN_INCLUDE_DIR=
${
MKLDNN_INCLUDE_DIR
}
-DNGRAPH_DISTRIBUTED_ENABLE=
${
NGRAPH_DISTRIBUTED_ENABLE
}
BUILD_BYPRODUCTS
${
NNP_TRANSFORMER_PREFIX
}
BUILD_ALWAYS 1
)
...
...
test/main.cpp
View file @
e30b3c61
...
...
@@ -28,7 +28,15 @@ using namespace std;
class
MpiEnvironment
:
public
::
testing
::
Environment
{
protected
:
virtual
void
SetUp
()
{
MPI
::
Init
();
}
virtual
void
SetUp
()
{
int
flag
=
0
;
MPI_Initialized
(
&
flag
);
if
(
!
flag
)
{
MPI
::
Init
();
}
}
virtual
void
TearDown
()
{
MPI
::
Finalize
();
}
virtual
~
MpiEnvironment
()
{}
};
...
...
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