MetaX-Tech Developer Forum 论坛首页
  • 沐曦开发者
search
Sign in
  • chevron_right Threads
  • label 产品&运维
  • label 已解决

安装torch报错 __nv_arch_type_internal__

wxsdiscover
2026年2月26日
chat_bubble_outline 14
  • link
    wxsdiscover
    Members 20 posts
    2026年2月26日 17:39 2026年2月26日 17:39
    link

    我的操作系统是openeuler 22.05, 准备跑yolo识别
    驱动相关如下
    mx-smi version: 2.2.9

    =================== MetaX System Management Interface Log ===================
    Timestamp : Thu Feb 26 17:37:00 2026

    Attached GPUs : 16
    +---------------------------------------------------------------------------------+
    | MX-SMI 2.2.9 Kernel Mode Driver Version: 3.3.12 |
    | MACA Version: 3.2.1.10 BIOS Version: 1.29.1.0 |
    |------------------+-----------------+---------------------+----------------------|
    | Board Name | GPU Persist-M | Bus-id | GPU-Util sGPU-M |
    | Pwr:Usage/Cap | Temp Perf | Memory-Usage | GPU-State |
    |==================+=================+=====================+======================|
    | 0 MetaX C500 | 0 Off | 0000:05:00.0 | 0% Disabled |
    | 65W / 350W | 43C P0 | 858/65536 MiB | Available |
    +------------------+-----------------+---------------------+----------------------+

    安装torch版本如下,使用的是maca-pytorch2.4-py312-3.2.1.3-x86_64.tar.xz
    Package Version


    flash_attn 2.6.3+metax3.2.1.3torch2.4
    torch 2.4.0+metax3.2.1.3
    torchaudio 2.4.1+metax3.2.1.3
    torchvision 0.15.1+metax3

    运行python -c "import torch; print(torch.ones(2).cuda())",出现错误
    (yolo_semantic) [root@standalone-amd64-mxc500 download]# python -c "import torch; print(torch.ones(2).cuda())"
    Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/opt/miniconda/envs/yolo_semantic/lib/python3.12/site-packages/torch/init.py", line 290, in <module>
    from torch._C import * # noqa: F403
    ^^^^^^^^^^^^^^^^^^^^^^
    ImportError: /opt/maca//lib/libmcFlashAttn.so: undefined symbol: nv_arch_type_internal

    找不到问题,求解

  • link
    shuai_chen
    Members 314 posts
    2026年2月26日 17:40 2026年2月26日 17:40
    link

    尊敬的开发者您好,请使用pytorch容器先进行验证

  • link
    wxsdiscover
    Members 20 posts
    2026年2月26日 17:42 2026年2月26日 17:42
    link

    这个和我使用容器有关联吗

  • link
    shuai_chen
    Members 314 posts
    2026年2月26日 17:43 2026年2月26日 17:43
    link

    尊敬的开发者您好,报错说明缺少某些依赖,请先使用pytorch镜像先就行验证

  • link
    wxsdiscover
    Members 20 posts
    2026年2月26日 17:47 2026年2月26日 17:47
    link

    按照你们官网的文档安装的为什么会缺依赖?

  • link
    shuai_chen
    Members 314 posts
    2026年2月26日 17:48 2026年2月26日 17:48
    link

    尊敬的开发者您好,和您的操作系统,conda环境,python等依赖缺失有关,建议使用pytorch镜像部署验证

  • link
    wxsdiscover
    Members 20 posts
    2026年2月26日 17:50 2026年2月26日 17:50
    link

    undefined symbol: nv_arch_type_internal,这个和环境没有问题吧

  • link
    wxsdiscover
    Members 20 posts
    2026年2月26日 17:51 2026年2月26日 17:51
    link

    这里我只按装了torch相关的3个包,其他的也有安装吗,-rw-r--r-- 1 1002 1002 13619423 10月 15 00:01 apex-0.1+metax3.2.1.3-cp312-cp312-linux_x86_64.whl
    -rw-r--r-- 1 1002 1002 11850047 10月 15 01:08 causal_conv1d-1.5.0.post8+metax3.2.1.3torch2.4-cp312-cp312-linux_x86_64.whl
    -rw-r--r-- 1 1002 1002 415231211 10月 15 00:55 dropout_layer_norm-0.1+metax3.2.1.3torch2.4-cp312-cp312-linux_x86_64.whl
    -rw-r--r-- 1 1002 1002 1292684192 10月 15 00:35 flash_attn-2.6.3+metax3.2.1.3torch2.4-cp312-cp312-linux_x86_64.whl
    -rw-r--r-- 1 1002 1002 15244749 10月 15 00:59 flashinfer-0.2.6+metax3.2.1.3torch2.4-cp312-cp312-linux_x86_64.whl
    -rw-r--r-- 1 1002 1002 13701829 10月 15 00:40 flash_mla-1.0.1+metax3.2.1.3torch2.4-cp312-cp312-linux_x86_64.whl
    -rw-r--r-- 1 1002 1002 90097 10月 15 00:44 fused_dense_lib-2.6.3+metax3.2.1.3torch2.4-cp312-cp312-linux_x86_64.whl
    -rw-r--r-- 1 1002 1002 11925324 10月 15 01:04 mamba_ssm-2.2.4+metax3.2.1.3torch2.4-cp312-cp312-linux_x86_64.whl
    -rw-r--r-- 1 1002 1002 115219 10月 15 01:09 mctlassEx-0.1.1+metax3.2.1.3torch2.4-cp312-cp312-linux_x86_64.whl
    -rw-r--r-- 1 1002 1002 4275579 10月 15 00:56 rotary_emb-0.1+metax3.2.1.3torch2.4-cp312-cp312-linux_x86_64.whl
    -rw-r--r-- 1 1002 1002 1066199 10月 15 00:43 sageattention-2.0.1+metax3.2.1.3torch2.4-cp312-cp312-linux_x86_64.whl
    -rw-r--r-- 1 1002 1002 2847558 10月 15 01:33 spconv-2.1.0+metax3.2.1.3torch2.4-cp312-cp312-linux_x86_64.whl
    -rw-r--r-- 1 1002 1002 645582726 10月 14 23:24 torch-2.4.0+metax3.2.1.3-cp312-cp312-linux_x86_64.whl
    -rw-r--r-- 1 1002 1002 1987325 10月 15 00:03 torchaudio-2.4.1+metax3.2.1.3-cp312-cp312-linux_x86_64.whl
    -rw-r--r-- 1 1002 1002 1816945 10月 14 23:47 torchvision-0.15.1+metax3.2.1.3-cp312-cp312-linux_x86_64.whl
    -rw-r--r-- 1 1002 1002 239538789 10月 14 23:46 triton-3.0.0+metax3.2.1.3-cp312-cp312-linux_x86_64.whl
    -rw-r--r-- 1 1002 1002 150442 10月 15 00:57 xentropy_cuda_lib-0.1+metax3.2.1.3torch2.4-cp312-cp312-linux_x86_64.whl
    -rw-r--r-- 1 1002 1002 601895420 10月 15 01:31 xformers-0.0.22+metax3.2.1.3torch2.4-cp312-cp312-linux_x86_64.whl

  • link
    shuai_chen
    Members 314 posts
    2026年2月26日 17:52 2026年2月26日 17:52
    link

    尊敬的开发者您好,这个问题是相关依赖版本不匹配导致的,建议使用pytorch镜像部署验证

  • link
    wxsdiscover
    Members 20 posts
    2026年2月26日 17:54 2026年2月26日 17:54
    link

    具体是哪里的依赖不匹配,py版本,maca版本,还是驱动的版本,还是

  • link
    shuai_chen
    Members 314 posts
    2026年2月26日 17:54 2026年2月26日 17:54
    link

    尊敬的开发者您好,需要使用pytorch镜像部署验证排查

  • link
    wxsdiscover
    Members 20 posts
    2026年2月26日 17:56 2026年2月26日 17:56
    link

    pytorch镜像部署有文档吗

  • link
    shuai_chen
    Members 314 posts
    2026年2月26日 17:59 2026年2月26日 17:59
    link

    尊敬的开发者您好,请参考developer.metax-tech.com/api/client/document/preview/972/split_files/%E5%AE%B9%E5%99%A8%E7%9B%B8%E5%85%B3%E5%9C%BA%E6%99%AF%E6%94%AF%E6%8C%81.html#gpu,请在沐曦开发者社区镜像中心下载pytorch镜像

  • arrow_forward

    Thread has been moved from 公共.

    • By shuai_chen on 2026年2月26日 17:59.
  • link
    wxsdiscover
    Members 20 posts
    2026年2月27日 08:49 2026年2月27日 08:49
    link

    你们没有openEuler系统的镜像

  • link
    shuai_chen
    Members 314 posts
    2026年2月27日 10:55 2026年2月27日 10:55
    link

    尊敬的开发者您好,使用ubuntu镜像即可

  • arrow_forward

    Thread has been moved from 解决中.

    • By shuai_chen on 2026年3月10日 17:28.
arrow_upward Go to top
  • 沐曦开发者论坛
powered by misago