-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* move python/paddle/fluid/tests/unittests/xpu to test/xpu * update CMakeLists.txt * remove xpu in fluid/tests/unittests/ * add path to op_test_xpu * fix incorrect path * update test script * fix test_adadelta_op_xpu error
- Loading branch information
1 parent
523f8a2
commit 9a7c83b
Showing
201 changed files
with
503 additions
and
993 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,40 @@ | ||
if(WITH_XPU) | ||
add_subdirectory(cpp) | ||
endif() | ||
|
||
file( | ||
GLOB TEST_OPS | ||
RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" | ||
"test_*.py") | ||
string(REPLACE ".py" "" TEST_OPS "${TEST_OPS}") | ||
|
||
if(WITH_XPU_BKCL) | ||
list(REMOVE_ITEM TEST_OPS "test_gen_bkcl_id_op") | ||
endif() | ||
|
||
file( | ||
GLOB DIST_TEST_OPS | ||
RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" | ||
"test_dist_*.py") | ||
if(WITH_XPU_BKCL) | ||
list(APPEND DIST_TEST_OPS test_gen_bkcl_id_op) | ||
endif() | ||
|
||
foreach(TEST_OP ${TEST_OPS}) | ||
py_test_modules(${TEST_OP} MODULES ${TEST_OP}) | ||
endforeach() | ||
|
||
foreach(TEST_OP ${DIST_TEST_OPS}) | ||
py_test_modules(${TEST_OP} MODULES ${TEST_OP}) | ||
endforeach() | ||
|
||
set_tests_properties(test_conv2d_op_xpu PROPERTIES TIMEOUT 120) | ||
set_tests_properties(test_mul_op_xpu PROPERTIES TIMEOUT 120) | ||
set_tests_properties(test_matmul_v2_op_xpu PROPERTIES TIMEOUT 900) | ||
set_tests_properties(test_matmul_op_xpu PROPERTIES TIMEOUT 300) | ||
set_tests_properties(test_collective_identity_xpu | ||
PROPERTIES LABELS "RUN_TYPE=DIST_KUNLUN") | ||
set_tests_properties(test_collective_allgather_xpu | ||
PROPERTIES LABELS "RUN_TYPE=DIST_KUNLUN") | ||
set_tests_properties(test_collective_allreduce_xpu | ||
PROPERTIES LABELS "RUN_TYPE=DIST_KUNLUN") |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.