refactor(ccu): always build HComm runtime backend
3 file(s) changed+15-64
Mscripts/package/build_package.sh+1-5
| @@ -145,16 +145,12 @@ find_ccu_libraries() | |||
| 145 | -DCANN_3RD_LIB_PATH="${PROJECT_ROOT}/third_party" \ | 145 | -DCANN_3RD_LIB_PATH="${PROJECT_ROOT}/third_party" \ |
| 146 | -DCMAKE_BUILD_TYPE=Release \ | 146 | -DCMAKE_BUILD_TYPE=Release \ |
| 147 | -DASCCOMM_BUILD_CCU=ON \ | 147 | -DASCCOMM_BUILD_CCU=ON \ |
| 148 | - -DASCCOMM_BUILD_CCU_RUNTIME=ON \ | 148 | + -DASCCOMM_BUILD_CCU_RUNTIME=ON |
| 149 | - -DASCCOMM_BUILD_CCU_RUNTIME_HCOMM_BACKEND=ON | ||
| 150 | 149 | ||
| 151 | cmake --build "${build_dir}" --target asccomm_ccu ccu_runtime | 150 | cmake --build "${build_dir}" --target asccomm_ccu ccu_runtime |
| 152 | [[ -f "${library}" ]] || fail "CCU library was not built: ${library}" | 151 | [[ -f "${library}" ]] || fail "CCU library was not built: ${library}" |
| 153 | [[ -f "${runtime_library}" ]] || \ | 152 | [[ -f "${runtime_library}" ]] || \ |
| 154 | fail "CCU runtime library was not built: ${runtime_library}" | 153 | fail "CCU runtime library was not built: ${runtime_library}" |
| 155 | - grep -q '^ASCCOMM_BUILD_CCU_RUNTIME_HCOMM_BACKEND:BOOL=ON$' \ | ||
| 156 | - "${build_dir}/CMakeCache.txt" || \ | ||
| 157 | - fail "CCU runtime was built without the HComm backend: ${runtime_library}" | ||
| 158 | CCU_LIBRARY="${library}" | 154 | CCU_LIBRARY="${library}" |
| 159 | CCU_RUNTIME_LIBRARY="${runtime_library}" | 155 | CCU_RUNTIME_LIBRARY="${runtime_library}" |
| 160 | } | 156 | } |
Msrc/ccu/experimental/CMakeLists.txt+13-21
Msrc/ccu/experimental/ccu_runtime_backend.cpp+1-38
Comments
Sign in to comment