ROCm build rccl

本文详细介绍了如何在ROCm3.3和ROCm3.5环境下编译rccl库。针对编译过程中遇到的libamdhip64.so路径错误问题,提出了解决方案,即修正ROCM安装路径下的cmake链接。同时,文章指出使用不低于3.5版本的cmake是必要的,并提供了手动安装cmake和libarchive的方法。在配置rccl时,若遇到找不到函数的问题,可以通过更新ldconfig缓存或修改CMakefile.txt中rccl为nccl来解决。
摘要由CSDN通过智能技术生成

Compile rccl with ROCm3.3, cmake3.6

Wrong examples

module load compiler/cmake/3.15.6
module unload compiler/rocm/3.5
module load compiler/rocm/3.3
which hipcc
/public/software/compiler/rocm/rocm-3.3.0/bin/hipcc
cd rccl-rocm-3.8.0/
sed -i "s#/opt/rocm#/public/software/compiler/rocm/rocm-3.3.0#" install.sh
./install.sh -i --hcc --prefix=$HOME/rccl
[100%] Linking CXX shared library librccl.so
ld.lld: error: cannot open /tmp/tmp.XbTYGPJsu7/kernel-gfx906.hsaco.isabin: No such file or directory
Generating AMD GCN kernel failed in ld.lld for target: gfx906
clang-10: error: linker command failed with exit code 2 (use -v to see invocation) make[2]: *** [CMakeFiles/rccl.dir/build.make:748: librccl.so.1.0] Error 2
make[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/rccl.dir/all] Error 2
make: *** [Makefile:152: all] Error 2
cd rccl-rocm-3.8.0/ 
sed -i "s#/opt/rocm#/public/software/compiler/rocm/rocm-3.3.0#" install.sh
./install.sh -i --prefix=$HOME/rccl
clang-10: warning: argument unused during compilatio
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值