已合并
split runtime ut #1740
duanpengliang创建于 4月22日
split runtime ut #1740
已合并
共 2 个文件变更+87-1
| @@ -11,7 +11,64 @@ acl: | |||
| 11 | llt: | 11 | llt: |
| 12 | ut_check: true | 12 | ut_check: true |
| 13 | st_check: false | 13 | st_check: false |
| 14 | -rts: | 14 | +rts_common: |
| 15 | + commiter: | ||
| 16 | + "xxx" | ||
| 17 | + team: "rts" | ||
| 18 | + src: | ||
| 19 | + release: | ||
| 20 | + - src/runtime | ||
| 21 | + unrelease: | ||
| 22 | + - src/runtime_compact | ||
| 23 | + - tests/depends/runtime | ||
| 24 | + - src/runtime/config | ||
| 25 | + - src/runtime/core/src/common/performance_record.cc | ||
| 26 | + - src/runtime/driver/npu_driver_win.cc | ||
| 27 | + - src/runtime/driver/npu_driver_standard_soc_win.cc | ||
| 28 | + - src/runtime/api/api_c_tiny_stub.cc | ||
| 29 | + - src/cmodel_driver | ||
| 30 | + llt: | ||
| 31 | + ut_check: true | ||
| 32 | + st_check: false | ||
| 33 | +rts_910b: | ||
| 34 | + commiter: | ||
| 35 | + "xxx" | ||
| 36 | + team: "rts" | ||
| 37 | + src: | ||
| 38 | + release: | ||
| 39 | + - src/runtime | ||
| 40 | + unrelease: | ||
| 41 | + - src/runtime_compact | ||
| 42 | + - tests/depends/runtime | ||
| 43 | + - src/runtime/config | ||
| 44 | + - src/runtime/core/src/common/performance_record.cc | ||
| 45 | + - src/runtime/driver/npu_driver_win.cc | ||
| 46 | + - src/runtime/driver/npu_driver_standard_soc_win.cc | ||
| 47 | + - src/runtime/api/api_c_tiny_stub.cc | ||
| 48 | + - src/cmodel_driver | ||
| 49 | + llt: | ||
| 50 | + ut_check: true | ||
| 51 | + st_check: false | ||
| 52 | +rts_v201: | ||
| 53 | + commiter: | ||
| 54 | + "xxx" | ||
| 55 | + team: "rts" | ||
| 56 | + src: | ||
| 57 | + release: | ||
| 58 | + - src/runtime | ||
| 59 | + unrelease: | ||
| 60 | + - src/runtime_compact | ||
| 61 | + - tests/depends/runtime | ||
| 62 | + - src/runtime/config | ||
| 63 | + - src/runtime/core/src/common/performance_record.cc | ||
| 64 | + - src/runtime/driver/npu_driver_win.cc | ||
| 65 | + - src/runtime/driver/npu_driver_standard_soc_win.cc | ||
| 66 | + - src/runtime/api/api_c_tiny_stub.cc | ||
| 67 | + - src/cmodel_driver | ||
| 68 | + llt: | ||
| 69 | + ut_check: true | ||
| 70 | + st_check: false | ||
| 71 | +rts_david: | ||
| 15 | commiter: | 72 | commiter: |
| 16 | "xxx" | 73 | "xxx" |
| 17 | team: "rts" | 74 | team: "rts" |
| @@ -1672,6 +1672,22 @@ target_link_libraries(runtime_utest_api_others PRIVATE | |||
| 1672 | 1672 | ||
| 1673 | include(CMakePackageConfigHelpers) | 1673 | include(CMakePackageConfigHelpers) |
| 1674 | 1674 | ||
| 1675 | +set(RUNTIME_TARGET_V201 | ||
| 1676 | + runtime_utest_task_v201 | ||
| 1677 | +) | ||
| 1678 | + | ||
| 1679 | +set(RUNTIME_TARGET_DAVID | ||
| 1680 | + runtime_utest_api_david | ||
| 1681 | + runtime_utest_task_david | ||
| 1682 | + runtime_utest_xpu | ||
| 1683 | +) | ||
| 1684 | + | ||
| 1685 | +set(RUNTIME_TARGET_910B | ||
| 1686 | + runtime_utest_task_910B | ||
| 1687 | + runtime_utest_api_910B | ||
| 1688 | + runtime_utest_xpu_910B | ||
| 1689 | +) | ||
| 1690 | + | ||
| 1675 | set(RUNTIME_TARGET | 1691 | set(RUNTIME_TARGET |
| 1676 | runtime_utest_dfx | 1692 | runtime_utest_dfx |
| 1677 | runtime_utest_model | 1693 | runtime_utest_model |
| @@ -1697,5 +1713,18 @@ set(RUNTIME_TARGET | |||
| 1697 | runtime_utest_adc | 1713 | runtime_utest_adc |
| 1698 | runtime_utest_mini_v3 | 1714 | runtime_utest_mini_v3 |
| 1699 | ) | 1715 | ) |
| 1716 | + | ||
| 1717 | +set(RUNTIME_TARGET_COMMON ${RUNTIME_TARGET}) | ||
| 1718 | +list(REMOVE_ITEM RUNTIME_TARGET_COMMON | ||
| 1719 | + ${RUNTIME_TARGET_V201} | ||
| 1720 | + ${RUNTIME_TARGET_DAVID} | ||
| 1721 | + ${RUNTIME_TARGET_910B} | ||
| 1722 | +) | ||
| 1723 | + | ||
| 1724 | +add_custom_target(runtime_ut_v201 DEPENDS ${RUNTIME_TARGET_V201}) | ||
| 1725 | +add_custom_target(runtime_ut_david DEPENDS ${RUNTIME_TARGET_DAVID}) | ||
| 1726 | +add_custom_target(runtime_ut_910b DEPENDS ${RUNTIME_TARGET_910B}) | ||
| 1727 | +add_custom_target(runtime_ut_common DEPENDS ${RUNTIME_TARGET_COMMON}) | ||
| 1728 | +add_custom_target(runtime_ut_all DEPENDS ${RUNTIME_TARGET}) | ||
| 1700 | add_custom_target(runtime_ut DEPENDS ${RUNTIME_TARGET}) | 1729 | add_custom_target(runtime_ut DEPENDS ${RUNTIME_TARGET}) |
| 1701 | include_directories(${CANN_3RD_LIB_PATH}/mockcpp_src/include) | 1730 | include_directories(${CANN_3RD_LIB_PATH}/mockcpp_src/include) |