Fork me on GitHub

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

K2 sherpa编译使用

编译安装

  1. pip卸载cmake、torch、k2
  2. 安装 cmake 3.22.3版本、k2、kaldi_feat【官方提供|install_dir】、torch==2.0.1【】
  3. 缺cuda
export LD_LIBRARY_PATH=/usr/local/cuda11.7/lib64:$LD_LIBRARY_PATH
export PATH=/usr/local/cuda11.7/include:/usr/local/cuda11.7/bin:$PATH
# libcupti.so.11.7
export LD_LIBRARY_PATH=/usr/local/cuda11.7/extras/CUPTI/lib64:/ceph/***/software/cuda-11.7.1/lib:$LD_LIBRARY_PATH
  1. 缺 libcupti.so.11.7
    export LD_LIBRARY_PATH=/usr/local/cuda11.7/extras/CUPTI/lib64:/ceph/***/software/cuda-11.7.1/lib:$LD_LIBRARY_PATH
  2. 缺libnccl.so.2
    /ceph/***/install_dir/nccl_2.13.4-1+cuda11.7_x86_64/lib

常见错误

  1. libcuda.so.1: wrong ELF class: ELFCLASS32

将32位依赖库改成64位依赖库

posted @ 2023-12-22 19:49  365/24/60  阅读(44)  评论(0编辑  收藏  举报