Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hami 适配 Ascend 910B 进容器执行 npu-smi 报错libraries: libc_sec.so: cannot open shared object file: No such file or directory #615

Open
zhangpk1996 opened this issue Nov 15, 2024 · 4 comments
Labels
kind/bug Something isn't working
Milestone

Comments

@zhangpk1996
Copy link

操作系统:Ubuntu
架构:arm
k8s: v1.23.0
容器配置文件
{
"default-runtime": "ascend",
"insecure-registries": [
"0.0.0.0/0"
],
"registry-mirrors": [
"https://docker.m.daocloud.io",
"https://docker.rainbond.cc"
],
"runtimes": {
"ascend": {
"path": "/usr/local/Ascend/Ascend-Docker-Runtime/ascend-docker-runtime",
"runtimeArgs": []
}

hami版本:v2.4.0
1731639663151

运行了demo-nginx 分配显示正常,但是进容器执行npu-smi info
报错
npu-smi: error while loading shared libraries: libc_sec.so: cannot open shared object file: No such file or directory

demo-nginx.yaml
apiVersion: v1
kind: Pod
metadata:
name: gpu-pod
spec:
containers:
- name: ubuntu-container
image: nginx:1.22.1
command: ["bash", "-c", "sleep 86400"]
resources:
limits:
huawei.com/Ascend910B: 1 # requesting 1 Ascend
huawei.com/Ascend910B-memory: 2000 # requesting 2000m device memory

@zhangpk1996 zhangpk1996 added the kind/bug Something isn't working label Nov 15, 2024
@archlitchi
Copy link
Collaborator

宿主机上npu-smi info是什么版本?

@zhangpk1996
Copy link
Author

1731651324803 宿主机是这个版本

@zhangpk1996
Copy link
Author

宿主机上npu-smi info是什么版本?

1731651539533 这个版本 npu-smi 24.1.rc2 Version: 24.1.rc2

@archlitchi
Copy link
Collaborator

试试用docker直接运行vNPU

docker run -it --rm -e ASCEND_VISIBLE_DEVICES=0 -e=ASCEND_VNPU_SPECS=vir10_3c_32g ascendhub.huawei.com/public-ascendhub/ascend-mindspore:23.0.RC3-centos7-ssh bash

看看npu-smi info能否正常运行?

@wawa0210 wawa0210 added this to the v2.5 milestone Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants