K2 sherpa编译使用
编译安装
- pip卸载cmake、torch、k2
- 安装 cmake 3.22.3版本、k2、kaldi_feat【官方提供|install_dir】、torch==2.0.1【】
- 缺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
- 缺 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
- 缺libnccl.so.2
/ceph/***/install_dir/nccl_2.13.4-1+cuda11.7_x86_64/lib
常见错误
libcuda.so.1: wrong ELF class: ELFCLASS32
将32位依赖库改成64位依赖库