update device target
This commit is contained in:
parent
990aaba139
commit
a19703d55c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue