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

cuda samples测试报错

vonchenplus
2026年1月8日
chat_bubble_outline 3
  • link
    vonchenplus
    Members 12 posts
    2026年1月8日 13:17 2026年1月8日 13:17
    link

    一、软硬件信息
    1. 沐曦GPU型号:C500
    2. 操作系统内核版本:Linux version 4.19.90-89.11.v2401.ky10.x86_64(Ubuntu 22.04)
    3. mx-smi回显:

    二、操作步骤
    1. 下载cuda samples代码
    git clone github.com/NVIDIA/cuda-samples
    2. 切换到cuda-samples代码目录并进入
    3. 开始编译代码
    export MACA_PATH=/opt/maca
    export CUCC_PATH=/opt/maca/tools/cu-bridge
    export PATH=$PATH:${CUCC_PATH}/tools:${CUCC_PATH}/bin
    export CUDA_PATH=/opt/maca/tools/cu-bridge
    mkdir build && cd build
    cmake_maca ..
    make_maca
    4. 运行编译并显示cuda初始化失败

    image.png

    PNG, 40.9 KB, uploaded by vonchenplus on 2026年1月8日.

    image.png

    PNG, 63.9 KB, uploaded by vonchenplus on 2026年1月8日.

    image.png

    PNG, 320.7 KB, uploaded by vonchenplus on 2026年1月8日.

    image.png

    PNG, 29.4 KB, uploaded by vonchenplus on 2026年1月8日.

    image.png

    PNG, 18.6 KB, uploaded by vonchenplus on 2026年1月8日.

  • link
    shuai_chen
    Members 221 posts
    2026年1月8日 13:37 2026年1月8日 13:37
    link

    尊敬的开发者您好,请您参考gitee.com/metax-maca/cu-bridge/tree/master/docs/02_User_Manual#step-24-%E4%BD%BF%E7%94%A8cu-bridge%E8%BF%81%E7%A7%BBcuda%E6%BA%90%E4%BB%A3%E7%A0%81%E9%A1%B9%E7%9B%AE

  • arrow_forward

    Thread has been moved from 编程.

    • By shuai_chen on 2026年1月8日 13:39.
  • arrow_forward

    Thread has been moved from 解决中.

    • By shuai_chen on 2026年1月8日 13:39.
  • arrow_forward

    Thread has been moved from 解决中.

    • By shuai_chen on 2026年1月8日 13:53.
  • link
    vonchenplus
    Members 12 posts
    2026年1月8日 14:48 2026年1月8日 14:48
    link

    你好,我看的就是这个文档,还是报告初始化失败,下面是调用日志:

    (base) openpie@i-685867a5-6682-4881-b9c0-23b53cdf18c9-0:/wb/scjgj/zscqzq/cuda-samples/Samples/0_Introduction/vectorAdd$ cucc vectorAdd.cu -o vectorAdd
    (base) openpie@i-685867a5-6682-4881-b9c0-23b53cdf18c9-0:/wb/scjgj/zscqzq/cuda-samples/Samples/0_Introduction/vectorAdd$ ls
    CMakeLists.txt  README.md  vectorAdd  vectorAdd.cu
    (base) openpie@i-685867a5-6682-4881-b9c0-23b53cdf18c9-0:/wb/scjgj/zscqzq/cuda-samples/Samples/0_Introduction/vectorAdd$ ./vectorAdd 
    [Vector addition of 50000 elements]
    Failed to allocate device vector A (error code initialization error)!
    (base) openpie@i-685867a5-6682-4881-b9c0-23b53cdf18c9-0:/wb/scjgj/zscqzq/cuda-samples/Samples/0_Introduction/vectorAdd$
    
  • link
    shuai_chen
    Members 221 posts
    2026年1月8日 14:50 2026年1月8日 14:50
    link

    尊敬的开发者您好,请补充以下信息

    一、软硬件信息
    1.服务器厂家:
    2.沐曦GPU型号:
    3.操作系统内核版本:
    4.是否开启CPU虚拟化:
    5.mx-smi回显:
    6.docker info回显:
    7.镜像版本:
    8.启动容器命令:
    9.容器内执行命令:
    二、问题现象
    请描述详细的问题现象日志。若日志过长,请上传附件(txt格式)。

  • arrow_forward

    Thread has been moved from 解决中.

    • By shuai_chen on 2026年1月12日 14:31.
arrow_upward Go to top
  • 沐曦开发者论坛
powered by misago