154  
查询码: 00000619
cuda examples在mr100_bi150上运行
专家 2026年06月25日 发布 ,于 2026年08月05日 编辑

1 下载cuda examples示例

密码联系天数工程师
sftp -P 29880 iluvatar_mr@iftp.iluvatar.com.cn 

get /client_tmp/support/kk/cuda_examples.tar.gz /home

2 解压示例编译

cd /home

tar -zxvf cuda_examples.tar.gz

cd cuda

make CUDA_ARCH=ivcore11 

(注:如果遇到'cmath' file not found报错,建议在容器下运行,是宿主机版本gcc太高或者太低导致)

粘贴图片

3 指定卡运行示例

CUDA_VISIBLE_DEVICES=1 ./pi

CUDA_VISIBLE_DEVICES=1 ./atomicAdd

CUDA_VISIBLE_DEVICES=1 ./atomicMul

CUDA_VISIBLE_DEVICES=1 ./ceil

CUDA_VISIBLE_DEVICES=1 ./global

CUDA_VISIBLE_DEVICES=1 ./printf

CUDA_VISIBLE_DEVICES=1 ./saxpy

粘贴图片

笔记



 附件

附件类型

PNGPNG

  目录
    天数智芯知识库系统 -V 5.2.7 -wcp