2.4K Star 8.2K Fork 4.4K

GVPMindSpore / mindspore

 / 详情

【mindspore 2.0.0】普通用户级别安装CANN后,mindspore2.0.0无法生效ascend模式

REJECTED
Bug-Report
创建于  
2023-06-27 16:53
name about labels
Bug Report Use this template for reporting a bug kind/bug

Describe the current behavior / 问题描述 (Mandatory / 必填)

https://mindspore.cn/install
安装官网安装CANN社区版本6.3.RC1.alpha003、驱动和对应mindspore 2.0.0
mindspore 2.0.0 版本910环境在普通用户(非root用户)安装toolkit时候,按官方文档全部安装成功并执行环境变量设置后,归一化的whl无法走到Ascend模式,执行mindspore.run_check()显示是CPU模式。
然后再root再安装同样的toolkit包,才能生效Ascend模式!

Environment / 环境信息 (Mandatory / 必填)

  • Hardware Environment(Ascend/GPU/CPU) / 硬件环境:

Please delete the backend not involved / 请删除不涉及的后端:
/device ascend

  • Software Environment / 软件环境 (Mandatory / 必填):
    MindSpore version (e.g., 1.7.0.Bxxx) :2.0.0
    Python version (e.g., Python 3.7.5) :3.7.16
    OS platform and distribution (e.g., Linux Ubuntu 16.04):EulerOS 2.0 (SP8)
    GCC/Compiler version (if compiled from source): gcc (GCC) 7.3.0

  • Excute Mode / 执行模式 (Mandatory / 必填)(PyNative/Graph):

Please delete the mode not involved / 请删除不涉及的模式:
/mode pynative
/mode graph

Related testcase / 关联用例 (Mandatory / 必填)

Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)

  1. root用户下安装driver、firmware成功(驱动固件在root安装)
  2. 切换任意普通用户安装toolkit,安装对应whl和mindspore(CANN在普通用户安装)
  3. 设置环境变量,执行官网的import mindspore;mindspore.run_check()

Describe the expected behavior / 预期结果 (Mandatory / 必填)

能正常显示Ascend模式

Related log / screenshot / 日志 / 截图 (Mandatory / 必填)

在普通用户安装CANN下显示CPU,随后root下安装CANN,才能显示Ascend
输入图片说明

Special notes for this issue/备注 (Optional / 选填)

评论 (3)

简云超 创建了Bug-Report
简云超 修改了描述
简云超 修改了描述
展开全部操作日志

Please assign maintainer to check this issue.
请为此issue分配处理人。
@简云超

Please add labels (comp or sig), also you can visit https://gitee.com/mindspore/community/blob/master/sigs/dx/docs/labels.md to find more.
为了让代码尽快被审核,请您为Pull Request打上 组件(comp)或兴趣组(sig) 标签,打上标签的PR可直接推送给责任人进行审核。
更多的标签可以查看https://gitee.com/mindspore/community/blob/master/sigs/dx/docs/labels.md
以组件相关代码提交为例,如果你提交的是data组件代码,你可以这样评论:
//comp/data
当然你也可以邀请data SIG组来审核代码,可以这样写:
//sig/data
另外你还可以给这个PR标记类型,例如是bugfix或者是特性需求:
//kind/bug or //kind/feature
恭喜你,你已经学会了使用命令来打标签,接下来就在下面的评论里打上标签吧!

Shawny 任务状态TODO 修改为ACCEPTED
Shawny 添加了
 
mindspore-assistant
标签
Shawny 添加了
 
sig/deploy
标签
Shawny 负责人设置为yanghaoran
Shawny 关联项目设置为MindSpore Issue Assistant
Shawny 计划开始日期设置为2023-06-30
Shawny 计划截止日期设置为2023-07-30

请用普通用户安装后执行以下命令,并反馈一下ascend后端加载失败时的报错信息:
python -c 'import mindspore; mindspore.set_context(device_target="Ascend"); mindspore.run_check()'

Shawny 添加了
 
kind/bug
标签
Shawny 添加了
 
kind/bug
标签
fangwenyi 里程碑设置为B-Deploy
fangwenyi 优先级设置为主要
fangwenyi 里程碑B-Deploy 修改为未设置
简云超 任务状态ACCEPTED 修改为REJECTED

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(3)
Python
1
https://gitee.com/mindspore/mindspore.git
git@gitee.com:mindspore/mindspore.git
mindspore
mindspore
mindspore

搜索帮助