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
c643cb5e
Commit
c643cb5e
authored
Jun 26, 2019
by
fenglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
using NGRAPH_TEST so test can be disable for specific backend
parent
8fe23cae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
distributed.in.cpp
test/distributed.in.cpp
+7
-6
No files found.
test/distributed.in.cpp
View file @
c643cb5e
...
...
@@ -25,6 +25,7 @@
#include "ngraph/serializer.hpp"
#include "util/all_close_f.hpp"
#include "util/random.hpp"
#include "util/test_control.hpp"
using
namespace
std
;
using
namespace
ngraph
;
...
...
@@ -93,29 +94,29 @@ static void test_allreduce_common(reduction::Type reduce_type)
}
}
TEST
(
distributed_
$
{
BACKEND_NAME
},
allreduce_sum
)
NGRAPH_
TEST
(
distributed_
$
{
BACKEND_NAME
},
allreduce_sum
)
{
test_allreduce_common
(
reduction
::
Type
::
SUM
);
}
TEST
(
distributed_
$
{
BACKEND_NAME
},
allreduce_min
)
NGRAPH_
TEST
(
distributed_
$
{
BACKEND_NAME
},
allreduce_min
)
{
test_allreduce_common
(
reduction
::
Type
::
MIN
);
}
TEST
(
distributed_
$
{
BACKEND_NAME
},
allreduce_max
)
NGRAPH_
TEST
(
distributed_
$
{
BACKEND_NAME
},
allreduce_max
)
{
test_allreduce_common
(
reduction
::
Type
::
MAX
);
}
#if !defined(NGRAPH_DISTRIBUTED_MLSL_ENABLE)
TEST
(
distributed_
$
{
BACKEND_NAME
},
allreduce_prod
)
NGRAPH_
TEST
(
distributed_
$
{
BACKEND_NAME
},
allreduce_prod
)
{
test_allreduce_common
(
reduction
::
Type
::
PROD
);
}
#endif
TEST
(
distributed_
$
{
BACKEND_NAME
},
broadcastdistributed
)
NGRAPH_
TEST
(
distributed_
$
{
BACKEND_NAME
},
broadcastdistributed
)
{
auto
shape
=
Shape
{
2
,
2
};
auto
A
=
make_shared
<
op
::
Parameter
>
(
element
::
f32
,
shape
);
...
...
@@ -145,7 +146,7 @@ TEST(distributed_${BACKEND_NAME}, broadcastdistributed)
//MLSL does not support send recv
#if !defined(NGRAPH_DISTRIBUTED_MLSL_ENABLE)
TEST
(
distributed_
$
{
BACKEND_NAME
},
send_recv
)
NGRAPH_
TEST
(
distributed_
$
{
BACKEND_NAME
},
send_recv
)
{
auto
shape
=
Shape
{
2
,
2
};
auto
A
=
make_shared
<
op
::
Parameter
>
(
element
::
f32
,
shape
);
...
...
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