Closed
[Requirement|需求建议]: asc-devkit解压即安装优化 #596
qinhanAdd on  Apr 30Closed at  Apr 30
qinhan
qinhan
Apr 30 Create

Thanks for sending an requirement! Please fill in the following template to help quickly solve your problem.

Backgroud(背景信息)

原先解压即安装的改造中处理安装报错问题:[AscDevkit] [2026-04-30 11:02:08] [INFO]: asc-devkit install upgradePercentage:10%
cp: cannot overwrite non-directory '/home/phisik3/opp_new/cann/bin' with directory 'bin'
[Common] [2026-04-30 11:02:08] [ERROR]: failed to copy file
采用的方法处理增加了 set(INSTALL_RUNTIME_DIR ${CMAKE_SYSTEM_PROCESSOR}-linux/bin)
set(INSTALL_OPTIONAL OPTIONAL)的默认值,影响较大,找出单独影响安装的逻辑,需要最小化修改

Origin(信息来源)

开发

Benefit / Necessity (价值/作用)

asc-devkit解压即安装逻辑优化,最小化修改产生的影响

Design(设计方案)

影响安装的逻辑位于:
install(TARGETS ascendc_pack_kernel
LIBRARY DESTINATION ${INSTALL_LIBRARY_DIR} ${INSTALL_OPTIONAL} COMPONENT asc-devkit
ARCHIVE DESTINATION ${INSTALL_LIBRARY_DIR} ${INSTALL_OPTIONAL} COMPONENT asc-devkit
RUNTIME DESTINATION ${INSTALL_RUNTIME_DIR} ${INSTALL_OPTIONAL} COMPONENT asc-devkit
只需要修改这里的逻辑即可
install(TARGETS ascendc_pack_kernel
DESTINATION ${CMAKE_SYSTEM_PROCESSOR}-linux/bin ${INSTALL_OPTIONAL} COMPONENT asc-devkit
)

likedislike
qinhanqinhan
Apr 30 Modify description of issue
CANN-robotCANN-robotCollaborators
Apr 30 Close issue
CANN-robotCANN-robotCollaborators
Apr 30 Added label: resolved