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
7d3a10f6
Commit
7d3a10f6
authored
Jun 26, 2019
by
fenglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add and ring send recv test
parent
168d8da0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
distributed.in.cpp
test/distributed.in.cpp
+7
-0
No files found.
test/distributed.in.cpp
View file @
7d3a10f6
...
...
@@ -151,6 +151,7 @@ NGRAPH_TEST(${BACKEND_NAME}, send_recv)
auto
shape
=
Shape
{
2
,
2
};
auto
A
=
make_shared
<
op
::
Parameter
>
(
element
::
f32
,
shape
);
auto
comm_size
=
get_distributed_interface
()
->
get_size
();
// this test only works for 2 nodes
if
(
comm_size
!=
2
)
{
return
;
...
...
@@ -188,6 +189,12 @@ NGRAPH_TEST(${BACKEND_NAME}, send_recv_ring)
auto
shape
=
Shape
{
2
,
2
};
auto
A
=
make_shared
<
op
::
Parameter
>
(
element
::
f32
,
shape
);
auto
comm_size
=
get_distributed_interface
()
->
get_size
();
// test only works for at least 2 nodes
if
(
comm_size
<
2
)
{
return
;
}
auto
rank
=
get_distributed_interface
()
->
get_rank
();
std
::
shared_ptr
<
Function
>
f_send
;
std
::
shared_ptr
<
Function
>
f_recv
;
...
...
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