Commit 790dcd6c authored by fenglei.tian's avatar fenglei.tian

update test and cmake

parent d94a25f0
...@@ -217,8 +217,8 @@ if(NGRAPH_DISTRIBUTED_ENABLE AND MPI_CXX_INCLUDE_PATH) ...@@ -217,8 +217,8 @@ if(NGRAPH_DISTRIBUTED_ENABLE AND MPI_CXX_INCLUDE_PATH)
set(SRC ${SRC} set(SRC ${SRC}
ops/allreduce.cpp ops/allreduce.cpp
) )
set_property(SOURCE codegen/compiler.cpp APPEND PROPERTY COMPILE_DEFINITIONS set(HEADER_SEARCH_DEFINES ${HEADER_SEARCH_DEFINES}
"MPI_HEADER_PATH=\"${MPI_C_INCLUDE_PATH}\";") "MPI_HEADER_PATHS=\"${MPI_C_INCLUE_PATH}\""
endif() endif()
# GPU backend current requires CPU because they share compiler.cpp, # GPU backend current requires CPU because they share compiler.cpp,
......
...@@ -1035,6 +1035,7 @@ TEST(${BACKEND_NAME}, backwards_power) ...@@ -1035,6 +1035,7 @@ TEST(${BACKEND_NAME}, backwards_power)
TEST(${BACKEND_NAME}, backwards_relu) TEST(${BACKEND_NAME}, backwards_relu)
{ {
SKIP_TEST_FOR("GPU", "${BACKEND_NAME}");
auto manager = runtime::Manager::get("${BACKEND_NAME}"); auto manager = runtime::Manager::get("${BACKEND_NAME}");
auto backend = manager->allocate_backend(); auto backend = manager->allocate_backend();
......
...@@ -7944,6 +7944,7 @@ TEST(${BACKEND_NAME}, min_3d_eliminate_zero_dim) ...@@ -7944,6 +7944,7 @@ TEST(${BACKEND_NAME}, min_3d_eliminate_zero_dim)
TEST(${BACKEND_NAME}, relu_2Dfprop) TEST(${BACKEND_NAME}, relu_2Dfprop)
{ {
SKIP_TEST_FOR("GPU", "${BACKEND_NAME}");
auto shape_a = Shape{2, 5}; auto shape_a = Shape{2, 5};
auto A = make_shared<op::Parameter>(element::f32, shape_a); auto A = make_shared<op::Parameter>(element::f32, shape_a);
auto relu = make_shared<op::Relu>(A); auto relu = make_shared<op::Relu>(A);
...@@ -7966,6 +7967,7 @@ TEST(${BACKEND_NAME}, relu_2Dfprop) ...@@ -7966,6 +7967,7 @@ TEST(${BACKEND_NAME}, relu_2Dfprop)
TEST(${BACKEND_NAME}, relu_4Dfprop) TEST(${BACKEND_NAME}, relu_4Dfprop)
{ {
SKIP_TEST_FOR("GPU", "${BACKEND_NAME}");
auto shape_a = Shape{2, 2, 2, 2}; auto shape_a = Shape{2, 2, 2, 2};
auto A = make_shared<op::Parameter>(element::f32, shape_a); auto A = make_shared<op::Parameter>(element::f32, shape_a);
auto relu = make_shared<op::Relu>(A); auto relu = make_shared<op::Relu>(A);
...@@ -7988,6 +7990,7 @@ TEST(${BACKEND_NAME}, relu_4Dfprop) ...@@ -7988,6 +7990,7 @@ TEST(${BACKEND_NAME}, relu_4Dfprop)
TEST(${BACKEND_NAME}, fuse_max_with_constant_zero_input_as_relu) TEST(${BACKEND_NAME}, fuse_max_with_constant_zero_input_as_relu)
{ {
SKIP_TEST_FOR("GPU", "${BACKEND_NAME}");
auto shape_a = Shape{2, 5}; auto shape_a = Shape{2, 5};
auto A = op::Constant::create(element::f32, shape_a, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}); auto A = op::Constant::create(element::f32, shape_a, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0});
auto B = make_shared<op::Parameter>(element::f32, shape_a); auto B = make_shared<op::Parameter>(element::f32, shape_a);
...@@ -8011,6 +8014,7 @@ TEST(${BACKEND_NAME}, fuse_max_with_constant_zero_input_as_relu) ...@@ -8011,6 +8014,7 @@ TEST(${BACKEND_NAME}, fuse_max_with_constant_zero_input_as_relu)
TEST(${BACKEND_NAME}, relu_2Dbackprop) TEST(${BACKEND_NAME}, relu_2Dbackprop)
{ {
SKIP_TEST_FOR("GPU", "${BACKEND_NAME}");
auto shape_a = Shape{2, 5}; auto shape_a = Shape{2, 5};
auto A = make_shared<op::Parameter>(element::f32, shape_a); auto A = make_shared<op::Parameter>(element::f32, shape_a);
auto delta_val = make_shared<op::Parameter>(element::f32, shape_a); auto delta_val = make_shared<op::Parameter>(element::f32, shape_a);
...@@ -8036,6 +8040,7 @@ TEST(${BACKEND_NAME}, relu_2Dbackprop) ...@@ -8036,6 +8040,7 @@ TEST(${BACKEND_NAME}, relu_2Dbackprop)
TEST(${BACKEND_NAME}, relu_4Dbackprop) TEST(${BACKEND_NAME}, relu_4Dbackprop)
{ {
SKIP_TEST_FOR("GPU", "${BACKEND_NAME}");
auto shape_a = Shape{2, 2, 2, 2}; auto shape_a = Shape{2, 2, 2, 2};
auto A = make_shared<op::Parameter>(element::f32, shape_a); auto A = make_shared<op::Parameter>(element::f32, shape_a);
auto delta_val = make_shared<op::Parameter>(element::f32, shape_a); auto delta_val = make_shared<op::Parameter>(element::f32, shape_a);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment