From a19703d55cfa1e82b272e8e0a680aa5fcec4aebb Mon Sep 17 00:00:00 2001 From: liubuyu Date: Tue, 23 Mar 2021 20:01:58 +0800 Subject: [PATCH] update device target --- cmake/package.cmake | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cmake/package.cmake b/cmake/package.cmake index 3f26e32d8b5..5f716f5e0c0 100644 --- a/cmake/package.cmake +++ b/cmake/package.cmake @@ -11,15 +11,15 @@ set(CPACK_TEMPORARY_PACKAGE_FILE_NAME ${CMAKE_SOURCE_DIR}/build/package/mindspor set(CPACK_TEMPORARY_INSTALL_DIRECTORY ${CMAKE_SOURCE_DIR}/build/package/mindspore) if(ENABLE_GE) set(CPACK_MS_BACKEND "ge") - set(CPACK_MS_TARGET "ascend-cpu") + set(CPACK_MS_TARGET "ascend or cpu") set(CPACK_MS_PACKAGE_NAME "mindspore") elseif(ENABLE_GPU) set(CPACK_MS_BACKEND "ms") - set(CPACK_MS_TARGET "gpu-cpu") + set(CPACK_MS_TARGET "gpu or cpu") set(CPACK_MS_PACKAGE_NAME "mindspore-gpu") elseif(ENABLE_D) set(CPACK_MS_BACKEND "ms") - set(CPACK_MS_TARGET "ascend-cpu") + set(CPACK_MS_TARGET "ascend or cpu") set(CPACK_MS_PACKAGE_NAME "mindspore-ascend") elseif(ENABLE_CPU) set(CPACK_MS_BACKEND "ms") @@ -27,11 +27,11 @@ elseif(ENABLE_CPU) set(CPACK_MS_PACKAGE_NAME "mindspore") elseif(ENABLE_ACL) set(CPACK_MS_BACKEND "debug") - set(CPACK_MS_TARGET "ascend-gpu-cpu") + set(CPACK_MS_TARGET "ascend or gpu or cpu") set(CPACK_MS_PACKAGE_NAME "mindspore-ascend") else() set(CPACK_MS_BACKEND "debug") - set(CPACK_MS_TARGET "ascend-gpu-cpu") + set(CPACK_MS_TARGET "ascend or gpu or cpu") set(CPACK_MS_PACKAGE_NAME "mindspore") endif() include(CPack)