Skip to content

Commit

Permalink
clean cmake (PaddlePaddle#193)
Browse files Browse the repository at this point in the history
* clean cmake
  • Loading branch information
gglin001 committed Sep 27, 2021
1 parent 27063f9 commit ab2b948
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 0 additions & 4 deletions paddle/fluid/operators/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,6 @@ if (WITH_ASCEND_CL)
set(COMMON_OP_DEPS ${COMMON_OP_DEPS} npu_op_runner)
endif()

if (WITH_IPU)
set(COMMON_OP_DEPS ${COMMON_OP_DEPS} ipu_backend)
endif()

# FIXME(typhoonzero): operator deps may not needed.
# op_library(lod_tensor_to_array_op DEPS lod_rank_table_op)
# op_library(array_to_lod_tensor_op DEPS lod_rank_table_op)
Expand Down
4 changes: 4 additions & 0 deletions python/paddle/fluid/tests/unittests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,10 @@ if (WITH_MKLDNN)
add_subdirectory(mkldnn)
endif()

if (WITH_IPU)
add_subdirectory(ipu)
endif()

add_subdirectory(ir)

if (WITH_TESTING)
Expand Down
6 changes: 6 additions & 0 deletions python/paddle/fluid/tests/unittests/ipu/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
file(GLOB TEST_OPS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "test_*.py")
string(REPLACE ".py" "" TEST_OPS "${TEST_OPS}")

foreach(TEST_OP ${TEST_OPS})
py_test_modules(${TEST_OP} MODULES ${TEST_OP})
endforeach(TEST_OP)

0 comments on commit ab2b948

Please sign in to comment.