Comments (54)
Yes, you can do that.
let me try
from sherpa-onnx.
Please run
cd /path/to/sherpa-onnx mkdir -p ../../_deps/onnxruntime-src/lib cp -v build/_deps/onnxruntime-src/lib/* ../../_deps/onnxruntime-src/lib # And run ./build/bin/sherpa-onnx-offline again
Segmentation fault (core dumped) again
from sherpa-onnx.
Several Cmake warnings appeared when I installed sherpa-onnx:
CMake Warning (dev) at /usr/local/cmake/share/cmake-3.29/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to find_package_handle_standard_args
(jack) does
not match the name of the calling package (Jack). This can lead to
problems in calling code that expects find_package
result variables
(e.g., _FOUND
) to follow a certain pattern.
Call Stack (most recent call first):
build/temp.linux-x86_64-cpython-38/_deps/portaudio-src/cmake_support/FindJack.cmake:34 (find_package_handle_standard_args)
build/temp.linux-x86_64-cpython-38/_deps/portaudio-src/CMakeLists.txt:277 (FIND_PACKAGE)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at build/temp.linux-x86_64-cpython-38/_deps/pybind11-src/tools/FindPythonLibsNew.cmake:98 (find_package):
Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
are removed. Run "cmake --help-policy CMP0148" for policy details. Use
the cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
build/temp.linux-x86_64-cpython-38/_deps/pybind11-src/tools/pybind11Tools.cmake:50 (find_package)
build/temp.linux-x86_64-cpython-38/_deps/pybind11-src/tools/pybind11Common.cmake:180 (include)
build/temp.linux-x86_64-cpython-38/_deps/pybind11-src/CMakeLists.txt:208 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
from sherpa-onnx.
Could you describe how you install sherpa-onnx
?
from sherpa-onnx.
Could you describe how you install
sherpa-onnx
?
git clone https://github.com/k2-fsa/sherpa-onnx
export SHERPA_ONNX_CMAKE_ARGS="-DSHERPA_ONNX_ENABLE_GPU=ON"
cd sherpa-onnx
python3 setup.py install
from sherpa-onnx.
ldd libonnxruntime_providers_cuda.so
linux-vdso.so.1 (0x00007ffd4a327000)
libcublasLt.so.11 => /usr/software/cuda-11.8.0/lib64/libcublasLt.so.11 (0x00007fdad2f10000)
libcublas.so.11 => /usr/software/cuda-11.8.0/lib64/libcublas.so.11 (0x00007fdacd2b2000)
libcudnn.so.8 => /usr/software/cuda-11.8.0/lib/libcudnn.so.8 (0x00007fdacd08c000)
libcurand.so.10 => /usr/software/cuda-11.8.0/lib64/libcurand.so.10 (0x00007fdac67b0000)
libcufft.so.10 => /usr/software/cuda-11.8.0/lib64/libcufft.so.10 (0x00007fdab58d5000)
libpthread.so.0 => /usr/lib64/libpthread.so.0 (0x00007fdab56b5000)
librt.so.1 => /usr/lib64/librt.so.1 (0x00007fdab54ad000)
libcudart.so.11.0 => /usr/software/cuda-11.8.0/lib64/libcudart.so.11.0 (0x00007fdab5206000)
libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007fdab4e39000)
libm.so.6 => /usr/lib64/libm.so.6 (0x00007fdab4af9000)
libgcc_s.so.1 => /usr/lib64/libgcc_s.so.1 (0x00007fdab48e3000)
libc.so.6 => /usr/lib64/libc.so.6 (0x00007fdab4525000)
/lib64/ld-linux-x86-64.so.2 (0x00007fdb142a9000)
libdl.so.2 => /usr/lib64/libdl.so.2 (0x00007fdab4321000)
from sherpa-onnx.
Please locate where _sherpa_onnx*.so*
is located in your python site package directory and run
readelf -d _sherpa_onnx*.so*
Please see also #392 (comment)
and post the output of the above command.
from sherpa-onnx.
请找到 python 站点包目录中的位置并运行
_sherpa_onnx*.so*
readelf -d _sherpa_onnx*.so*
Please see also #392 (comment) and post the output of the above command.
Dynamic section at offset 0xbd8d0 contains 43 entries:
标记 类型 名称/值
0x0000000000000001 (NEEDED) 共享库:[libsherpa-onnx-core.so]
0x0000000000000001 (NEEDED) 共享库:[libasound.so.2]
0x0000000000000001 (NEEDED) 共享库:[libkaldi-native-fbank-core.so]
0x0000000000000001 (NEEDED) 共享库:[libkaldi-decoder-core.so]
0x0000000000000001 (NEEDED) 共享库:[libsherpa-onnx-kaldifst-core.so]
0x0000000000000001 (NEEDED) 共享库:[libssentencepiece_core.so]
0x0000000000000001 (NEEDED) 共享库:[libpthread.so.0]
0x0000000000000001 (NEEDED) 共享库:[../../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so]
0x0000000000000001 (NEEDED) 共享库:[libonnxruntime_providers_shared.so]
0x0000000000000001 (NEEDED) 共享库:[libpiper_phonemize.so.1]
0x0000000000000001 (NEEDED) 共享库:[libonnxruntime.so.1.17.1]
0x0000000000000001 (NEEDED) 共享库:[libespeak-ng.so]
0x0000000000000001 (NEEDED) 共享库:[libucd.so]
0x0000000000000001 (NEEDED) 共享库:[libsherpa-onnx-fstfar.so]
0x0000000000000001 (NEEDED) 共享库:[libsherpa-onnx-fst.so]
0x0000000000000001 (NEEDED) 共享库:[libstdc++.so.6]
0x0000000000000001 (NEEDED) 共享库:[libm.so.6]
0x0000000000000001 (NEEDED) 共享库:[libgcc_s.so.1]
0x0000000000000001 (NEEDED) 共享库:[libc.so.6]
0x000000000000000f (RPATH) Library rpath: [$ORIGIN:/home/ytc/ytcProject/sherpa-onnx/build/temp.linux-x86_64-cpython-38/_deps/onnxruntime-src/lib:/home/ytc/ytcProject/sherpa-onnx/build/temp.linux-x86_64-cpython-38/lib::$ORIGIN/sherpa_onnx/lib]
0x000000000000000c (INIT) 0xe5b8
0x000000000000000d (FINI) 0x978d0
0x0000000000000019 (INIT_ARRAY) 0x2bafe8
0x000000000000001b (INIT_ARRAYSZ) 16 (bytes)
0x000000000000001a (FINI_ARRAY) 0x2baff8
0x000000000000001c (FINI_ARRAYSZ) 8 (bytes)
0x0000000000000004 (HASH) 0x190
0x0000000000000005 (STRTAB) 0x3300
0x0000000000000006 (SYMTAB) 0xc30
0x000000000000000a (STRSZ) 16880 (bytes)
0x000000000000000b (SYMENT) 24 (bytes)
0x0000000000000003 (PLTGOT) 0x2be000
0x0000000000000002 (PLTRELSZ) 5664 (bytes)
0x0000000000000014 (PLTREL) RELA
0x0000000000000017 (JMPREL) 0xcf98
0x0000000000000007 (RELA) 0x79d0
0x0000000000000008 (RELASZ) 21960 (bytes)
0x0000000000000009 (RELAENT) 24 (bytes)
0x000000006ffffffe (VERNEED) 0x7830
0x000000006fffffff (VERNEEDNUM) 6
0x000000006ffffff0 (VERSYM) 0x74f0
0x000000006ffffff9 (RELACOUNT) 677
0x0000000000000000 (NULL) 0x0
from sherpa-onnx.
Could you post the absolute path of this file?
from sherpa-onnx.
[ytc@localhost lib]$ sudo find / -name _sherpa_onnx*.so*
/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/sherpa_onnx-1.9.30-py3.8-linux-x86_64.egg/_sherpa_onnx.cpython-38-x86_64-linux-gnu.so
/home/ytc/ytcProject/sherpa-onnx/build/lib.linux-x86_64-cpython-38/_sherpa_onnx.cpython-38-x86_64-linux-gnu.so
/home/ytc/ytcProject/sherpa-onnx/build/temp.linux-x86_64-cpython-38/lib/_sherpa_onnx.cpython-38-x86_64-linux-gnu.so
$ sudo find / -name libonnxruntime_providers_cuda.so
/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/sherpa_onnx-1.9.30-py3.8-linux-x86_64.egg/sherpa_onnx/lib/libonnxruntime_providers_cuda.so
/home/ytc/ytcProject/sherpa-onnx/build/lib.linux-x86_64-cpython-38/sherpa_onnx/lib/libonnxruntime_providers_cuda.so
/home/ytc/ytcProject/sherpa-onnx/build/temp.linux-x86_64-cpython-38/_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so
from sherpa-onnx.
Could you post the absolute path of this file?
The shared library paths displayed by executing the "readelf -d _sherpa_onnx*.so*" command for these three paths are all [../../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so], but in fact only one meets this path
from sherpa-onnx.
- Please install https://github.com/NixOS/patchelf
On Ubuntu, you can use
sudo apt-get install patchelf
- Run
patchelf --replace-needed ../../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so libonnxruntime_providers_cuda.so /home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/sherpa_onnx-1.9.30-py3.8-linux-x86_64.egg/_sherpa_onnx.cpython-38-x86_64-linux-gnu.so
- Run
readelf -d /home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/sherpa_onnx-1.9.30-py3.8-linux-x86_64.egg/_sherpa_onnx.cpython-38-x86_64-linux-gnu.so
and post again the output
- Run
python3 -c 'import sherpa_onnx; print(sherpa_onnx.__file__)'
from sherpa-onnx.
Reference in new
Dynamic section at offset 0xbd8d0 contains 43 entries:
标记 类型 名称/值
0x0000000000000001 (NEEDED) 共享库:[libsherpa-onnx-core.so]
0x0000000000000001 (NEEDED) 共享库:[libasound.so.2]
0x0000000000000001 (NEEDED) 共享库:[libkaldi-native-fbank-core.so]
0x0000000000000001 (NEEDED) 共享库:[libkaldi-decoder-core.so]
0x0000000000000001 (NEEDED) 共享库:[libsherpa-onnx-kaldifst-core.so]
0x0000000000000001 (NEEDED) 共享库:[libssentencepiece_core.so]
0x0000000000000001 (NEEDED) 共享库:[libpthread.so.0]
0x0000000000000001 (NEEDED) 共享库:[libonnxruntime_providers_cuda.so]
0x0000000000000001 (NEEDED) 共享库:[libonnxruntime_providers_shared.so]
0x0000000000000001 (NEEDED) 共享库:[libpiper_phonemize.so.1]
0x0000000000000001 (NEEDED) 共享库:[libonnxruntime.so.1.17.1]
0x0000000000000001 (NEEDED) 共享库:[libespeak-ng.so]
0x0000000000000001 (NEEDED) 共享库:[libucd.so]
0x0000000000000001 (NEEDED) 共享库:[libsherpa-onnx-fstfar.so]
0x0000000000000001 (NEEDED) 共享库:[libsherpa-onnx-fst.so]
0x0000000000000001 (NEEDED) 共享库:[libstdc++.so.6]
0x0000000000000001 (NEEDED) 共享库:[libm.so.6]
0x0000000000000001 (NEEDED) 共享库:[libgcc_s.so.1]
0x0000000000000001 (NEEDED) 共享库:[libc.so.6]
0x000000000000000f (RPATH) Library rpath: [$ORIGIN:$ORIGIN/sherpa_onnx/lib]
0x000000000000000c (INIT) 0xe5b8
0x000000000000000d (FINI) 0x978d0
0x0000000000000019 (INIT_ARRAY) 0x2bafe8
0x000000000000001b (INIT_ARRAYSZ) 16 (bytes)
0x000000000000001a (FINI_ARRAY) 0x2baff8
0x000000000000001c (FINI_ARRAYSZ) 8 (bytes)
0x0000000000000004 (HASH) 0x2bf000
0x0000000000000005 (STRTAB) 0x2bfaa0
0x0000000000000006 (SYMTAB) 0xc30
0x000000000000000a (STRSZ) 16913 (bytes)
0x000000000000000b (SYMENT) 24 (bytes)
0x0000000000000003 (PLTGOT) 0x2be000
0x0000000000000002 (PLTRELSZ) 5664 (bytes)
0x0000000000000014 (PLTREL) RELA
0x0000000000000017 (JMPREL) 0xcf98
0x0000000000000007 (RELA) 0x79d0
0x0000000000000008 (RELASZ) 21960 (bytes)
0x0000000000000009 (RELAENT) 24 (bytes)
0x000000006ffffffe (VERNEED) 0x7830
0x000000006fffffff (VERNEEDNUM) 6
0x000000006ffffff0 (VERSYM) 0x74f0
0x000000006ffffff9 (RELACOUNT) 677
0x0000000000000000 (NULL) 0x0
(kaldi) [ytc@localhost lib.linux-x86_64-cpython-38]$ python3 -c 'import sherpa_onnx; print(sherpa_onnx.file)'
Traceback (most recent call last):
File "", line 1, in
File "/home/ytc/ytcProject/sherpa-onnx/build/lib.linux-x86_64-cpython-38/sherpa_onnx/init.py", line 1, in
from _sherpa_onnx import (
ImportError: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: cannot open shared object file: No such file or directory
from sherpa-onnx.
(kaldi) [ytc@localhost lib.linux-x86_64-cpython-38]$ python3 -c 'import sherpa_onnx; print(sherpa_onnx.file)'
please switch to a new directory. Don't run it inside lib.linux-x86_64-cpython-38
You can use
cd /tmp
python3 -c 'import sherpa_onnx; print(sherpa_onnx.__file__)'
from sherpa-onnx.
(kaldi) [ytc@localhost lib.linux-x86_64-cpython-38]$ python3 -c 'import sherpa_onnx; print(sherpa_onnx.file)'
please switch to a new directory. Don't run it inside
lib.linux-x86_64-cpython-38
You can use
cd /tmp python3 -c 'import sherpa_onnx; print(sherpa_onnx.__file__)'
Still the same error
from sherpa-onnx.
I just executed “patchelf --replace-needed ../../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so libonnxruntime_providers_cuda.so /home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/sherpa_onnx-1.9.30-py3.8-linux-x86_64.egg/_sherpa_onnx.cpython-38-x86_64-linux-gnu.so” at first, but it still reported an error, so I changed the paths of the other two shared libraries.
from sherpa-onnx.
Note the first time, you posted the following error:
ImportError: ../../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: cannot open shared object file: No such file or directory
The second time you posted the following after running patchelf
:
ImportError: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: cannot open shared object file: No such file or directory
You can see that the two errors are different.
Please find where libsherpa-onnx-core.so
is located in side your python site packages directory and run readelf -d
on it and see if there is ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so
in it. If yes, please run patchelf
on it.
from sherpa-onnx.
Note the first time, you posted the following error:
ImportError: ../../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: cannot open shared object file: No such file or directory
The second time you posted the following after running
patchelf
:ImportError: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: cannot open shared object file: No such file or directory
You can see that the two errors are different.
Please find where
libsherpa-onnx-core.so
is located in side your python site packages directory and runreadelf -d
on it and see if there is../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so
in it. If yes, please runpatchelf
on it.
I did it, but now I get a segmentation fault (core dumped)
from sherpa-onnx.
As long as I execute import shrpa_onnx, segmentation fault (core dumped) will be reported
from sherpa-onnx.
Could you describe what you have done?
from sherpa-onnx.
and I run patchelf on these
Could you post the exact command you have run with patchelf
?
from sherpa-onnx.
Could you describe what you have done?
I just executed “sudo find / -name libsherpa-onnx-core.so” like this:
$ sudo find / -name libsherpa-onnx-core.so
/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/sherpa_onnx-1.9.30-py3.8-linux-x86_64.egg/sherpa_onnx/lib/libsherpa-onnx-core.so
/home/ytc/ytcProject/sherpa-onnx/build/lib.linux-x86_64-cpython-38/sherpa_onnx/lib/libsherpa-onnx-core.so
/home/ytc/ytcProject/sherpa-onnx/build/temp.linux-x86_64-cpython-38/lib/libsherpa-onnx-core.so
then I run readelf -d on these path, all of these are ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so, and I run patchelf on these
from sherpa-onnx.
and I run patchelf on these
Could you post the output of readelf -d xxx.so
on those .so
files and post the command about how you run patchelf
on those .so files?
from sherpa-onnx.
and I run patchelf on these
Could you post the output of
readelf -d xxx.so
on those.so
files and post the command about how you runpatchelf
on those .so files?
(kaldi) [ytc@localhost ~]$ sudo find / -name libsherpa-onnx-core.so
[sudo] ytc 的密码:
/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/sherpa_onnx-1.9.30-py3.8-linux-x86_64.egg/sherpa_onnx/lib/libsherpa-onnx-core.so
/home/ytc/ytcProject/sherpa-onnx/build/lib.linux-x86_64-cpython-38/sherpa_onnx/lib/libsherpa-onnx-core.so
/home/ytc/ytcProject/sherpa-onnx/build/temp.linux-x86_64-cpython-38/lib/libsherpa-onnx-core.so
(kaldi) [ytc@localhost ~]$ readelf -d /home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/sherpa_onnx-1.9.30-py3.8-linux-x86_64.egg/sherpa_onnx/lib/libsherpa-onnx-core.so
Dynamic section at offset 0x211488 contains 43 entries:
标记 类型 名称/值
0x0000000000000001 (NEEDED) 共享库:[libkaldi-native-fbank-core.so]
0x0000000000000001 (NEEDED) 共享库:[libkaldi-decoder-core.so]
0x0000000000000001 (NEEDED) 共享库:[libssentencepiece_core.so]
0x0000000000000001 (NEEDED) 共享库:[../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so]
0x0000000000000001 (NEEDED) 共享库:[libonnxruntime_providers_shared.so]
0x0000000000000001 (NEEDED) 共享库:[libpiper_phonemize.so.1]
0x0000000000000001 (NEEDED) 共享库:[libsherpa-onnx-fstfar.so]
0x0000000000000001 (NEEDED) 共享库:[libsherpa-onnx-kaldifst-core.so]
0x0000000000000001 (NEEDED) 共享库:[libpthread.so.0]
0x0000000000000001 (NEEDED) 共享库:[libonnxruntime.so.1.17.1]
0x0000000000000001 (NEEDED) 共享库:[libespeak-ng.so]
0x0000000000000001 (NEEDED) 共享库:[libucd.so]
0x0000000000000001 (NEEDED) 共享库:[libsherpa-onnx-fst.so]
0x0000000000000001 (NEEDED) 共享库:[libstdc++.so.6]
0x0000000000000001 (NEEDED) 共享库:[libm.so.6]
0x0000000000000001 (NEEDED) 共享库:[libgcc_s.so.1]
0x0000000000000001 (NEEDED) 共享库:[libc.so.6]
0x0000000000000001 (NEEDED) 共享库:[ld-linux-x86-64.so.2]
0x000000000000000e (SONAME) Library soname: [libsherpa-onnx-core.so]
0x000000000000000f (RPATH) Library rpath: [$ORIGIN]
0x000000000000000c (INIT) 0x5ad98
0x000000000000000d (FINI) 0x1cad0c
0x0000000000000019 (INIT_ARRAY) 0x40e4d0
0x000000000000001b (INIT_ARRAYSZ) 616 (bytes)
0x000000000000001a (FINI_ARRAY) 0x40e738
0x000000000000001c (FINI_ARRAYSZ) 8 (bytes)
0x0000000000000004 (HASH) 0x190
0x0000000000000005 (STRTAB) 0x145b8
0x0000000000000006 (SYMTAB) 0x4b68
0x000000000000000a (STRSZ) 212158 (bytes)
0x000000000000000b (SYMENT) 24 (bytes)
0x0000000000000003 (PLTGOT) 0x412000
0x0000000000000002 (PLTRELSZ) 27696 (bytes)
0x0000000000000014 (PLTREL) RELA
0x0000000000000017 (JMPREL) 0x54168
0x0000000000000007 (RELA) 0x49938
0x0000000000000008 (RELASZ) 43056 (bytes)
0x0000000000000009 (RELAENT) 24 (bytes)
0x000000006ffffffe (VERNEED) 0x49758
0x000000006fffffff (VERNEEDNUM) 7
0x000000006ffffff0 (VERSYM) 0x48276
0x000000006ffffff9 (RELACOUNT) 227
0x0000000000000000 (NULL) 0x0
(kaldi) [ytc@localhost ~]$ patchelf --replace-needed ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so libonnxruntime_providers_cuda.so /home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/sherpa_onnx-1.9.30-py3.8-linux-x86_64.egg/sherpa_onnx/lib/libsherpa-onnx-core.so
(kaldi) [ytc@localhost ~]$ readelf -d /home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/sherpa_onnx-1.9.30-py3.8-linux-x86_64.egg/sherpa_onnx/lib/libsherpa-onnx-core.so
Dynamic section at offset 0x211488 contains 43 entries:
标记 类型 名称/值
0x0000000000000001 (NEEDED) 共享库:[libkaldi-native-fbank-core.so]
0x0000000000000001 (NEEDED) 共享库:[libkaldi-decoder-core.so]
0x0000000000000001 (NEEDED) 共享库:[libssentencepiece_core.so]
0x0000000000000001 (NEEDED) 共享库:[libonnxruntime_providers_cuda.so]
0x0000000000000001 (NEEDED) 共享库:[libonnxruntime_providers_shared.so]
0x0000000000000001 (NEEDED) 共享库:[libpiper_phonemize.so.1]
0x0000000000000001 (NEEDED) 共享库:[libsherpa-onnx-fstfar.so]
0x0000000000000001 (NEEDED) 共享库:[libsherpa-onnx-kaldifst-core.so]
0x0000000000000001 (NEEDED) 共享库:[libpthread.so.0]
0x0000000000000001 (NEEDED) 共享库:[libonnxruntime.so.1.17.1]
0x0000000000000001 (NEEDED) 共享库:[libespeak-ng.so]
0x0000000000000001 (NEEDED) 共享库:[libucd.so]
0x0000000000000001 (NEEDED) 共享库:[libsherpa-onnx-fst.so]
0x0000000000000001 (NEEDED) 共享库:[libstdc++.so.6]
0x0000000000000001 (NEEDED) 共享库:[libm.so.6]
0x0000000000000001 (NEEDED) 共享库:[libgcc_s.so.1]
0x0000000000000001 (NEEDED) 共享库:[libc.so.6]
0x0000000000000001 (NEEDED) 共享库:[ld-linux-x86-64.so.2]
0x000000000000000e (SONAME) Library soname: [libsherpa-onnx-core.so]
0x000000000000000f (RPATH) Library rpath: [$ORIGIN]
0x000000000000000c (INIT) 0x5ad98
0x000000000000000d (FINI) 0x1cad0c
0x0000000000000019 (INIT_ARRAY) 0x40e4d0
0x000000000000001b (INIT_ARRAYSZ) 616 (bytes)
0x000000000000001a (FINI_ARRAY) 0x40e738
0x000000000000001c (FINI_ARRAYSZ) 8 (bytes)
0x0000000000000004 (HASH) 0x415000
0x0000000000000005 (STRTAB) 0x4199d8
0x0000000000000006 (SYMTAB) 0x4b68
0x000000000000000a (STRSZ) 212191 (bytes)
0x000000000000000b (SYMENT) 24 (bytes)
0x0000000000000003 (PLTGOT) 0x412000
0x0000000000000002 (PLTRELSZ) 27696 (bytes)
0x0000000000000014 (PLTREL) RELA
0x0000000000000017 (JMPREL) 0x54168
0x0000000000000007 (RELA) 0x49938
0x0000000000000008 (RELASZ) 43056 (bytes)
0x0000000000000009 (RELAENT) 24 (bytes)
0x000000006ffffffe (VERNEED) 0x49758
0x000000006fffffff (VERNEEDNUM) 7
0x000000006ffffff0 (VERSYM) 0x48276
0x000000006ffffff9 (RELACOUNT) 227
0x0000000000000000 (NULL) 0x0
(kaldi) [ytc@localhost ~]$ readelf -d /home/ytc/ytcProject/sherpa-onnx/build/lib.linux-x86_64-cpython-38/sherpa_onnx/lib/libsherpa-onnx-core.so
Dynamic section at offset 0x211488 contains 43 entries:
标记 类型 名称/值
0x0000000000000001 (NEEDED) 共享库:[libkaldi-native-fbank-core.so]
0x0000000000000001 (NEEDED) 共享库:[libkaldi-decoder-core.so]
0x0000000000000001 (NEEDED) 共享库:[libssentencepiece_core.so]
0x0000000000000001 (NEEDED) 共享库:[../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so]
0x0000000000000001 (NEEDED) 共享库:[libonnxruntime_providers_shared.so]
0x0000000000000001 (NEEDED) 共享库:[libpiper_phonemize.so.1]
0x0000000000000001 (NEEDED) 共享库:[libsherpa-onnx-fstfar.so]
0x0000000000000001 (NEEDED) 共享库:[libsherpa-onnx-kaldifst-core.so]
0x0000000000000001 (NEEDED) 共享库:[libpthread.so.0]
0x0000000000000001 (NEEDED) 共享库:[libonnxruntime.so.1.17.1]
0x0000000000000001 (NEEDED) 共享库:[libespeak-ng.so]
0x0000000000000001 (NEEDED) 共享库:[libucd.so]
0x0000000000000001 (NEEDED) 共享库:[libsherpa-onnx-fst.so]
0x0000000000000001 (NEEDED) 共享库:[libstdc++.so.6]
0x0000000000000001 (NEEDED) 共享库:[libm.so.6]
0x0000000000000001 (NEEDED) 共享库:[libgcc_s.so.1]
0x0000000000000001 (NEEDED) 共享库:[libc.so.6]
0x0000000000000001 (NEEDED) 共享库:[ld-linux-x86-64.so.2]
0x000000000000000e (SONAME) Library soname: [libsherpa-onnx-core.so]
0x000000000000000f (RPATH) Library rpath: [$ORIGIN]
0x000000000000000c (INIT) 0x5ad98
0x000000000000000d (FINI) 0x1cad0c
0x0000000000000019 (INIT_ARRAY) 0x40e4d0
0x000000000000001b (INIT_ARRAYSZ) 616 (bytes)
0x000000000000001a (FINI_ARRAY) 0x40e738
0x000000000000001c (FINI_ARRAYSZ) 8 (bytes)
0x0000000000000004 (HASH) 0x190
0x0000000000000005 (STRTAB) 0x145b8
0x0000000000000006 (SYMTAB) 0x4b68
0x000000000000000a (STRSZ) 212158 (bytes)
0x000000000000000b (SYMENT) 24 (bytes)
0x0000000000000003 (PLTGOT) 0x412000
0x0000000000000002 (PLTRELSZ) 27696 (bytes)
0x0000000000000014 (PLTREL) RELA
0x0000000000000017 (JMPREL) 0x54168
0x0000000000000007 (RELA) 0x49938
0x0000000000000008 (RELASZ) 43056 (bytes)
0x0000000000000009 (RELAENT) 24 (bytes)
0x000000006ffffffe (VERNEED) 0x49758
0x000000006fffffff (VERNEEDNUM) 7
0x000000006ffffff0 (VERSYM) 0x48276
0x000000006ffffff9 (RELACOUNT) 227
0x0000000000000000 (NULL) 0x0
(kaldi) [ytc@localhost ~]$ patchelf --replace-needed ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so libonnxruntime_providers_cuda.so /home/ytc/ytcProject/sherpa-onnx/build/lib.linux-x86_64-cpython-38/sherpa_onnx/lib/libsherpa-onnx-core.so
(kaldi) [ytc@localhost ~]$ readelf -d /home/ytc/ytcProject/sherpa-onnx/build/lib.linux-x86_64-cpython-38/sherpa_onnx/lib/libsherpa-onnx-core.so
Dynamic section at offset 0x211488 contains 43 entries:
标记 类型 名称/值
0x0000000000000001 (NEEDED) 共享库:[libkaldi-native-fbank-core.so]
0x0000000000000001 (NEEDED) 共享库:[libkaldi-decoder-core.so]
0x0000000000000001 (NEEDED) 共享库:[libssentencepiece_core.so]
0x0000000000000001 (NEEDED) 共享库:[libonnxruntime_providers_cuda.so]
0x0000000000000001 (NEEDED) 共享库:[libonnxruntime_providers_shared.so]
0x0000000000000001 (NEEDED) 共享库:[libpiper_phonemize.so.1]
0x0000000000000001 (NEEDED) 共享库:[libsherpa-onnx-fstfar.so]
0x0000000000000001 (NEEDED) 共享库:[libsherpa-onnx-kaldifst-core.so]
0x0000000000000001 (NEEDED) 共享库:[libpthread.so.0]
0x0000000000000001 (NEEDED) 共享库:[libonnxruntime.so.1.17.1]
0x0000000000000001 (NEEDED) 共享库:[libespeak-ng.so]
0x0000000000000001 (NEEDED) 共享库:[libucd.so]
0x0000000000000001 (NEEDED) 共享库:[libsherpa-onnx-fst.so]
0x0000000000000001 (NEEDED) 共享库:[libstdc++.so.6]
0x0000000000000001 (NEEDED) 共享库:[libm.so.6]
0x0000000000000001 (NEEDED) 共享库:[libgcc_s.so.1]
0x0000000000000001 (NEEDED) 共享库:[libc.so.6]
0x0000000000000001 (NEEDED) 共享库:[ld-linux-x86-64.so.2]
0x000000000000000e (SONAME) Library soname: [libsherpa-onnx-core.so]
0x000000000000000f (RPATH) Library rpath: [$ORIGIN]
0x000000000000000c (INIT) 0x5ad98
0x000000000000000d (FINI) 0x1cad0c
0x0000000000000019 (INIT_ARRAY) 0x40e4d0
0x000000000000001b (INIT_ARRAYSZ) 616 (bytes)
0x000000000000001a (FINI_ARRAY) 0x40e738
0x000000000000001c (FINI_ARRAYSZ) 8 (bytes)
0x0000000000000004 (HASH) 0x415000
0x0000000000000005 (STRTAB) 0x4199d8
0x0000000000000006 (SYMTAB) 0x4b68
0x000000000000000a (STRSZ) 212191 (bytes)
0x000000000000000b (SYMENT) 24 (bytes)
0x0000000000000003 (PLTGOT) 0x412000
0x0000000000000002 (PLTRELSZ) 27696 (bytes)
0x0000000000000014 (PLTREL) RELA
0x0000000000000017 (JMPREL) 0x54168
0x0000000000000007 (RELA) 0x49938
0x0000000000000008 (RELASZ) 43056 (bytes)
0x0000000000000009 (RELAENT) 24 (bytes)
0x000000006ffffffe (VERNEED) 0x49758
0x000000006fffffff (VERNEEDNUM) 7
0x000000006ffffff0 (VERSYM) 0x48276
0x000000006ffffff9 (RELACOUNT) 227
0x0000000000000000 (NULL) 0x0
(kaldi) [ytc@localhost ~]$ sudo find / -name libsherpa-onnx-core.so
/home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/sherpa_onnx-1.9.30-py3.8-linux-x86_64.egg/sherpa_onnx/lib/libsherpa-onnx-core.so
/home/ytc/ytcProject/sherpa-onnx/build/lib.linux-x86_64-cpython-38/sherpa_onnx/lib/libsherpa-onnx-core.so
/home/ytc/ytcProject/sherpa-onnx/build/temp.linux-x86_64-cpython-38/lib/libsherpa-onnx-core.so
(kaldi) [ytc@localhost ~]$ readelf -d /home/ytc/ytcProject/sherpa-onnx/build/temp.linux-x86_64-cpython-38/lib/libsherpa-onnx-core.so
Dynamic section at offset 0x211488 contains 43 entries:
标记 类型 名称/值
0x0000000000000001 (NEEDED) 共享库:[libkaldi-native-fbank-core.so]
0x0000000000000001 (NEEDED) 共享库:[libkaldi-decoder-core.so]
0x0000000000000001 (NEEDED) 共享库:[libssentencepiece_core.so]
0x0000000000000001 (NEEDED) 共享库:[../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so]
0x0000000000000001 (NEEDED) 共享库:[libonnxruntime_providers_shared.so]
0x0000000000000001 (NEEDED) 共享库:[libpiper_phonemize.so.1]
0x0000000000000001 (NEEDED) 共享库:[libsherpa-onnx-fstfar.so]
0x0000000000000001 (NEEDED) 共享库:[libsherpa-onnx-kaldifst-core.so]
0x0000000000000001 (NEEDED) 共享库:[libpthread.so.0]
0x0000000000000001 (NEEDED) 共享库:[libonnxruntime.so.1.17.1]
0x0000000000000001 (NEEDED) 共享库:[libespeak-ng.so]
0x0000000000000001 (NEEDED) 共享库:[libucd.so]
0x0000000000000001 (NEEDED) 共享库:[libsherpa-onnx-fst.so]
0x0000000000000001 (NEEDED) 共享库:[libstdc++.so.6]
0x0000000000000001 (NEEDED) 共享库:[libm.so.6]
0x0000000000000001 (NEEDED) 共享库:[libgcc_s.so.1]
0x0000000000000001 (NEEDED) 共享库:[libc.so.6]
0x0000000000000001 (NEEDED) 共享库:[ld-linux-x86-64.so.2]
0x000000000000000e (SONAME) Library soname: [libsherpa-onnx-core.so]
0x000000000000000f (RPATH) Library rpath: [$ORIGIN:/home/ytc/ytcProject/sherpa-onnx/build/temp.linux-x86_64-cpython-38/_deps/onnxruntime-src/lib:/home/ytc/ytcProject/sherpa-onnx/build/temp.linux-x86_64-cpython-38/lib:]
0x000000000000000c (INIT) 0x5ad98
0x000000000000000d (FINI) 0x1cad0c
0x0000000000000019 (INIT_ARRAY) 0x40e4d0
0x000000000000001b (INIT_ARRAYSZ) 616 (bytes)
0x000000000000001a (FINI_ARRAY) 0x40e738
0x000000000000001c (FINI_ARRAYSZ) 8 (bytes)
0x0000000000000004 (HASH) 0x190
0x0000000000000005 (STRTAB) 0x145b8
0x0000000000000006 (SYMTAB) 0x4b68
0x000000000000000a (STRSZ) 212158 (bytes)
0x000000000000000b (SYMENT) 24 (bytes)
0x0000000000000003 (PLTGOT) 0x412000
0x0000000000000002 (PLTRELSZ) 27696 (bytes)
0x0000000000000014 (PLTREL) RELA
0x0000000000000017 (JMPREL) 0x54168
0x0000000000000007 (RELA) 0x49938
0x0000000000000008 (RELASZ) 43056 (bytes)
0x0000000000000009 (RELAENT) 24 (bytes)
0x000000006ffffffe (VERNEED) 0x49758
0x000000006fffffff (VERNEEDNUM) 7
0x000000006ffffff0 (VERSYM) 0x48276
0x000000006ffffff9 (RELACOUNT) 227
0x0000000000000000 (NULL) 0x0
(kaldi) [ytc@localhost ~]$
(kaldi) [ytc@localhost ~]$ patchelf --replace-needed ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so libonnxruntime_providers_cuda.so /home/ytc/ytcProject/sherpa-onnx/build/temp.linux-x86_64-cpython-38/lib/libsherpa-onnx-core.so
from sherpa-onnx.
Could you run
cd /tmp
gdb --args python3 -c "import sherpa_onnx; print(sherpa_onnx.__file__)"
It will print
(gdb)
Then run
(gdb) catch throw
(gdb) run
from sherpa-onnx.
Could you run
cd /tmp gdb --args python3 -c "import sherpa_onnx; print(sherpa_onnx.__file__)"
It will print
(gdb)
Then run
(gdb) catch throw (gdb) run
(kaldi) [ytc@localhost tmp]$ gdb --args python3 -c "import sherpa_onnx; print(sherpa_onnx.file)"
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-120.el7
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/...
Reading symbols from /home/ytc/anaconda3/envs/kaldi/bin/python3.8...Dwarf Error: wrong version in compilation unit header (is 5, should be 2, 3, or 4) [in module /home/ytc/anaconda3/envs/kaldi/bin/python3.8]
(no debugging symbols found)...done.
(gdb) (gdb) catch throw
Undefined command: "". Try "help".
(gdb) (gdb) run
Undefined command: "". Try "help".
(gdb) catch throw
Function "__cxa_throw" not defined.
Catchpoint 1 (throw)
(gdb) run
Starting program: /home/ytc/anaconda3/envs/kaldi/bin/python3 -c import\ sherpa_onnx;\ print(sherpa_onnx.file)
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib64/libthread_db.so.1".
Dwarf Error: wrong version in compilation unit header (is 5, should be 2, 3, or 4) [in module /home/ytc/anaconda3/envs/kaldi/bin/../lib/libstdc++.so.6]
Dwarf Error: wrong version in compilation unit header (is 5, should be 2, 3, or 4) [in module /home/ytc/anaconda3/envs/kaldi/bin/../lib/libgcc_s.so.1]
Missing separate debuginfo for /usr/lib64/libcuda.so.1
Try: yum --enablerepo='debug' install /usr/lib/debug/.build-id/77/77c24e9e147d8179b0573d35dfda635e80c549.debug
Program received signal SIGSEGV, Segmentation fault.
0x00007fffc33037c6 in ?? ()
from /home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/sherpa_onnx-1.9.30-py3.8-linux-x86_64.egg/sherpa_onnx/lib/libonnxruntime_providers_cuda.so
Missing separate debuginfos, use: debuginfo-install alsa-lib-1.1.8-1.el7.x86_64
(gdb)
from sherpa-onnx.
Please retry.
You don't need to use
(gdb) (gdb) catch throw
from sherpa-onnx.
Please retry.
You don't need to use
(gdb) (gdb) catch throw
(gdb) catch throw
Function "__cxa_throw" not defined.
Catchpoint 1 (throw)
(gdb) run
Starting program: /home/ytc/anaconda3/envs/kaldi/bin/python3 -c import\ sherpa_onnx;\ print(sherpa_onnx.file)
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib64/libthread_db.so.1".
Dwarf Error: wrong version in compilation unit header (is 5, should be 2, 3, or 4) [in module /home/ytc/anaconda3/envs/kaldi/bin/../lib/libstdc++.so.6]
Dwarf Error: wrong version in compilation unit header (is 5, should be 2, 3, or 4) [in module /home/ytc/anaconda3/envs/kaldi/bin/../lib/libgcc_s.so.1]
Missing separate debuginfo for /usr/lib64/libcuda.so.1
Try: yum --enablerepo='debug' install /usr/lib/debug/.build-id/77/77c24e9e147d8179b0573d35dfda635e80c549.debug
Program received signal SIGSEGV, Segmentation fault.
0x00007fffc33037c6 in ?? ()
from /home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/sherpa_onnx-1.9.30-py3.8-linux-x86_64.egg/sherpa_onnx/lib/libonnxruntime_providers_cuda.so
Missing separate debuginfos, use: debuginfo-install alsa-lib-1.1.8-1.el7.x86_64
from sherpa-onnx.
Could you run
patchelf --remove-needed libonnxruntime_providers_cuda.so xxx.so
where xxx.so
is the above mentioned .so files.
from sherpa-onnx.
Could you run
patchelf --remove-needed libonnxruntime_providers_cuda.so xxx.so
where
xxx.so
is the above mentioned .so files.
(kaldi) [ytc@localhost tmp]$ patchelf --remove-needed libonnxruntime_providers_cuda.so /home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/sherpa_onnx-1.9.30-py3.8-linux-x86_64.egg/sherpa_onnx/lib/libsherpa-onnx-core.so
(kaldi) [ytc@localhost tmp]$ patchelf --remove-needed libonnxruntime_providers_cuda.so /home/ytc/ytcProject/sherpa-onnx/build/lib.linux-x86_64-cpython-38/sherpa_onnx/lib/libsherpa-onnx-core.so
(kaldi) [ytc@localhost tmp]$ patchelf --remove-needed libonnxruntime_providers_cuda.so /home/ytc/ytcProject/sherpa-onnx/build/temp.linux-x86_64-cpython-38/lib/libsherpa-onnx-core.so
(kaldi) [ytc@localhost tmp]$ python3 -c "import sherpa_onnx; print(sherpa_onnx.file)"
segmentation fault (core dumped)
from sherpa-onnx.
(kaldi) [ytc@localhost tmp]$ readelf -d /home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/sherpa_onnx-1.9.30-py3.8-linux-x86_64.egg/sherpa_onnx/lib/libsherpa-onnx-core.so
Dynamic section at offset 0x211488 contains 42 entries:
标记 类型 名称/值
0x0000000000000001 (NEEDED) 共享库:[libkaldi-native-fbank-core.so]
0x0000000000000001 (NEEDED) 共享库:[libkaldi-decoder-core.so]
0x0000000000000001 (NEEDED) 共享库:[libssentencepiece_core.so]
0x0000000000000001 (NEEDED) 共享库:[libonnxruntime_providers_shared.so]
0x0000000000000001 (NEEDED) 共享库:[libpiper_phonemize.so.1]
0x0000000000000001 (NEEDED) 共享库:[libsherpa-onnx-fstfar.so]
0x0000000000000001 (NEEDED) 共享库:[libsherpa-onnx-kaldifst-core.so]
0x0000000000000001 (NEEDED) 共享库:[libpthread.so.0]
0x0000000000000001 (NEEDED) 共享库:[libonnxruntime.so.1.17.1]
0x0000000000000001 (NEEDED) 共享库:[libespeak-ng.so]
0x0000000000000001 (NEEDED) 共享库:[libucd.so]
0x0000000000000001 (NEEDED) 共享库:[libsherpa-onnx-fst.so]
0x0000000000000001 (NEEDED) 共享库:[libstdc++.so.6]
0x0000000000000001 (NEEDED) 共享库:[libm.so.6]
0x0000000000000001 (NEEDED) 共享库:[libgcc_s.so.1]
0x0000000000000001 (NEEDED) 共享库:[libc.so.6]
0x0000000000000001 (NEEDED) 共享库:[ld-linux-x86-64.so.2]
0x000000000000000e (SONAME) Library soname: [libsherpa-onnx-core.so]
0x000000000000000f (RPATH) Library rpath: [$ORIGIN]
0x000000000000000c (INIT) 0x5ad98
0x000000000000000d (FINI) 0x1cad0c
0x0000000000000019 (INIT_ARRAY) 0x40e4d0
0x000000000000001b (INIT_ARRAYSZ) 616 (bytes)
0x000000000000001a (FINI_ARRAY) 0x40e738
0x000000000000001c (FINI_ARRAYSZ) 8 (bytes)
0x0000000000000004 (HASH) 0x415000
0x0000000000000005 (STRTAB) 0x4199d8
0x0000000000000006 (SYMTAB) 0x4b68
0x000000000000000a (STRSZ) 212191 (bytes)
0x000000000000000b (SYMENT) 24 (bytes)
0x0000000000000003 (PLTGOT) 0x412000
0x0000000000000002 (PLTRELSZ) 27696 (bytes)
0x0000000000000014 (PLTREL) RELA
0x0000000000000017 (JMPREL) 0x54168
0x0000000000000007 (RELA) 0x49938
0x0000000000000008 (RELASZ) 43056 (bytes)
0x0000000000000009 (RELAENT) 24 (bytes)
0x000000006ffffffe (VERNEED) 0x49758
0x000000006fffffff (VERNEEDNUM) 7
0x000000006ffffff0 (VERSYM) 0x48276
0x000000006ffffff9 (RELACOUNT) 227
0x0000000000000000 (NULL) 0x0
There is no libonnxruntime_providers_cuda.so
from sherpa-onnx.
could you run with gdb?
from sherpa-onnx.
could you run with gdb?
(kaldi) [ytc@localhost tmp]$ gdb --args python3 -c "import sherpa_onnx; print(sherpa_onnx.file)"
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-120.el7
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/...
Reading symbols from /home/ytc/anaconda3/envs/kaldi/bin/python3.8...Dwarf Error: wrong version in compilation unit header (is 5, should be 2, 3, or 4) [in module /home/ytc/anaconda3/envs/kaldi/bin/python3.8]
(no debugging symbols found)...done.
(gdb) catch throw
Function "__cxa_throw" not defined.
Catchpoint 1 (throw)
(gdb) run
Starting program: /home/ytc/anaconda3/envs/kaldi/bin/python3 -c import\ sherpa_onnx;\ print(sherpa_onnx.file)
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib64/libthread_db.so.1".
Dwarf Error: wrong version in compilation unit header (is 5, should be 2, 3, or 4) [in module /home/ytc/anaconda3/envs/kaldi/bin/../lib/libstdc++.so.6]
Dwarf Error: wrong version in compilation unit header (is 5, should be 2, 3, or 4) [in module /home/ytc/anaconda3/envs/kaldi/bin/../lib/libgcc_s.so.1]
Missing separate debuginfo for /usr/lib64/libcuda.so.1
Try: yum --enablerepo='debug' install /usr/lib/debug/.build-id/77/77c24e9e147d8179b0573d35dfda635e80c549.debug
Program received signal SIGSEGV, Segmentation fault.
0x00007fffc33037c6 in ?? ()
from /home/ytc/anaconda3/envs/kaldi/lib/python3.8/site-packages/sherpa_onnx-1.9.30-py3.8-linux-x86_64.egg/sherpa_onnx/lib/libonnxruntime_providers_cuda.so
Missing separate debuginfos, use: debuginfo-install alsa-lib-1.1.8-1.el7.x86_64
from sherpa-onnx.
Are you able to run sherpa-onnx with cuda using the binaries, e.g., using build/bin/sherpa-onnx
or build/bin/sherpa-onnx-offline
?
(Remember to provide the argument --provider=cuda
)
from sherpa-onnx.
Are you able to run sherpa-onnx with cuda using the binaries, e.g., using
build/bin/sherpa-onnx
orbuild/bin/sherpa-onnx-offline
? (Remember to provide the argument--provider=cuda
)
I haven't tried it, how can I do?
from sherpa-onnx.
Please follow
https://k2-fsa.github.io/sherpa/onnx/install/linux.html
from sherpa-onnx.
Please follow https://k2-fsa.github.io/sherpa/onnx/install/linux.html
I just followed this, should I delete build and rebuild?
from sherpa-onnx.
Yes, you can do that.
from sherpa-onnx.
Yes, you can do that.
How can I install sherpa_onnx-GPU offline?
from sherpa-onnx.
After building, you will find an exectuable
./build/bin/sherpa-onnx-offline
Please follow
https://k2-fsa.github.io/sherpa/onnx/pretrained_models/offline-transducer/zipformer-transducer-models.html#id9
to run it.
Remeber to pass --provider=cuda
as a commandline argument for sherpa-onnx-offline
from sherpa-onnx.
After building, you will find an exectuable
./build/bin/sherpa-onnx-offline
Please follow https://k2-fsa.github.io/sherpa/onnx/pretrained_models/offline-transducer/zipformer-transducer-models.html#id9 to run it.
Remeber to pass
--provider=cuda
as a commandline argument for sherpa-onnx-offline
I get this warning when I run make -j6:
/usr/bin/ld: warning: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so, needed by ../lib/libsherpa-onnx-c-api.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so, needed by ../lib/libsherpa-onnx-c-api.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so, needed by ../lib/libsherpa-onnx-c-api.so, not found (try using -rpath or -rpath-link)
from sherpa-onnx.
Could you post the complete logs of
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DSHERPA_ONNX_ENABLE_GPU=ON ..
(Please remove build/CMakeCache.txt before you run the above command to get logs)
from sherpa-onnx.
Could you post the complete logs of
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DSHERPA_ONNX_ENABLE_GPU=ON ..
(Please remove build/CMakeCache.txt before you run the above command to get logs)
Not surprisingly, a similar error occurred
(kaldi) [ytc@localhost sherpa-onnx]$ ./build/bin/sherpa-onnx-offline \
--tokens=./sherpa-onnx-zipformer-multi-zh-hans-2023-9-2/tokens.txt
--encoder=./sherpa-onnx-zipformer-multi-zh-hans-2023-9-2/encoder-epoch-20-avg-1.int8.onnx
--decoder=./sherpa-onnx-zipformer-multi-zh-hans-2023-9-2/decoder-epoch-20-avg-1.onnx
--joiner=./sherpa-onnx-zipformer-multi-zh-hans-2023-9-2/joiner-epoch-20-avg-1.int8.onnx
--provider=cuda
./sherpa-onnx-zipformer-multi-zh-hans-2023-9-2/test_wavs/0.wav
./sherpa-onnx-zipformer-multi-zh-hans-2023-9-2/test_wavs/1.wav
./sherpa-onnx-zipformer-multi-zh-hans-2023-9-2/test_wavs/8k.wav
./build/bin/sherpa-onnx-offline: error while loading shared libraries: ../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: cannot open shared object file: No such file or directory
from sherpa-onnx.
Could you post the complete logs of
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DSHERPA_ONNX_ENABLE_GPU=ON ..
(Please remove build/CMakeCache.txt before you run the above command to get logs)
I remove ./build before executing cmake
from sherpa-onnx.
what is the output of
cd build
ls -lh _deps/onnxruntime-src/lib
please see also #1030 (comment)
from sherpa-onnx.
what is the output of
cd build ls -lh _deps/onnxruntime-src/lib
please see also #1030 (comment)
(kaldi) [ytc@localhost build]$ ls -lh _deps/onnxruntime-src/lib
总用量 478M
-rwxrwxr-x. 1 ytc ytc 459M 6月 19 19:45 libonnxruntime_providers_cuda.so
-rwxrwxr-x. 1 ytc ytc 6.3K 6月 19 19:45 libonnxruntime_providers_shared.so
-rwxrwxr-x. 1 ytc ytc 839K 6月 19 19:45 libonnxruntime_providers_tensorrt.so
lrwxrwxrwx. 1 ytc ytc 24 6月 19 19:45 libonnxruntime.so -> libonnxruntime.so.1.17.1
-rwxrwxr-x. 1 ytc ytc 19M 6月 19 19:45 libonnxruntime.so.1.17.1
from sherpa-onnx.
Could you post the complete logs of
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DSHERPA_ONNX_ENABLE_GPU=ON ..
(Please remove build/CMakeCache.txt before you run the above command to get logs)
(kaldi) [ytc@localhost sherpa-onnx]$ mkdir build
(kaldi) [ytc@localhost sherpa-onnx]$ cd build/
(kaldi) [ytc@localhost build]$ cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DSHERPA_ONNX_ENABLE_GPU=ON ..
-- The C compiler identification is GNU 10.1.0
-- The CXX compiler identification is GNU 10.1.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Warning at CMakeLists.txt:78 (message):
Compiling for NVIDIA GPU is enabled. Please make sure cudatoolkit
is installed on your system. Otherwise, you will get errors at runtime.
Hint: You don't need sudo permission to install CUDA toolkit. Please refer
to
https://k2-fsa.github.io/k2/installation/cuda-cudnn.html
to install CUDA toolkit if you have not installed it.
-- CMAKE_BUILD_TYPE: Release
-- CMAKE_INSTALL_PREFIX: /usr/local
-- BUILD_SHARED_LIBS ON
-- SHERPA_ONNX_ENABLE_PYTHON OFF
-- SHERPA_ONNX_ENABLE_TESTS OFF
-- SHERPA_ONNX_ENABLE_CHECK OFF
-- SHERPA_ONNX_ENABLE_PORTAUDIO ON
-- SHERPA_ONNX_ENABLE_JNI OFF
-- SHERPA_ONNX_ENABLE_C_API ON
-- SHERPA_ONNX_ENABLE_WEBSOCKET ON
-- SHERPA_ONNX_ENABLE_GPU ON
-- SHERPA_ONNX_ENABLE_WASM OFF
-- SHERPA_ONNX_ENABLE_WASM_TTS OFF
-- SHERPA_ONNX_ENABLE_WASM_ASR OFF
-- SHERPA_ONNX_ENABLE_WASM_KWS OFF
-- SHERPA_ONNX_ENABLE_WASM_NODEJS OFF
-- SHERPA_ONNX_ENABLE_BINARY ON
-- SHERPA_ONNX_ENABLE_TTS ON
-- SHERPA_ONNX_LINK_LIBSTDCPP_STATICALLY ON
-- SHERPA_ONNX_USE_PRE_INSTALLED_ONNXRUNTIME_IF_AVAILABLE ON
-- SHERPA_ONNX_ENABLE_SANITIZER: OFF
-- TTS is enabled
-- C++ Standard version: 14
-- Looking for C++ include alsa/asoundlib.h
-- Looking for C++ include alsa/asoundlib.h - found
-- With Alsa
-- Looking for C++ include cxxabi.h
-- Looking for C++ include cxxabi.h - found
-- Looking for C++ include execinfo.h
-- Looking for C++ include execinfo.h - found
-- Downloading kaldi-native-fbank from https://github.com/csukuangfj/kaldi-native-fbank/archive/refs/tags/v1.19.3.tar.gz
-- kaldi-native-fbank is downloaded to /home/ytc/ytcProject/sherpa-onnx/build/_deps/kaldi_native_fbank-src
-- kaldi-native-fbank's binary dir is /home/ytc/ytcProject/sherpa-onnx/build/_deps/kaldi_native_fbank-build
CMake Deprecation Warning at build/_deps/kaldi_native_fbank-src/CMakeLists.txt:24 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- CMAKE_BUILD_TYPE: Release
-- CMAKE_EXPORT_COMPILE_COMMANDS:
-- BUILD_SHARED_LIBS: ON
-- KALDI_NATIVE_FBANK_BUILD_TESTS: OFF
-- KALDI_NATIVE_FBANK_BUILD_PYTHON: OFF
-- KALDI_NATIVE_FBANK_ENABLE_CHECK: OFF
-- KALDI_NATIVE_FBANK_ENABLE_CHECK: OFF
-- CMAKE_CXX_FLAGS:
-- CMAKE_INSTALL_PREFIX: /usr/local
-- Looking for C++ include cxxabi.h
-- Looking for C++ include cxxabi.h - found
-- Looking for C++ include execinfo.h
-- Looking for C++ include execinfo.h - found
-- Disable building Python
-- Downloading kaldi-decoder from https://github.com/k2-fsa/kaldi-decoder/archive/refs/tags/v0.2.6.tar.gz
-- kaldi-decoder is downloaded to /home/ytc/ytcProject/sherpa-onnx/build/_deps/kaldi_decoder-src
-- kaldi-decoder's binary dir is /home/ytc/ytcProject/sherpa-onnx/build/_deps/kaldi_decoder-build
-- CMAKE_BUILD_TYPE: Release
-- Downloading kaldifst from https://github.com/k2-fsa/kaldifst/archive/refs/tags/v1.7.11.tar.gz
-- kaldifst is downloaded to /home/ytc/ytcProject/sherpa-onnx/build/_deps/kaldifst-src
-- kaldifst's binary dir is /home/ytc/ytcProject/sherpa-onnx/build/_deps/kaldifst-build
-- CMAKE_BUILD_TYPE: Release
-- CMAKE_BUILD_TYPE: Release
-- CMAKE_INSTALL_PREFIX: /usr/local
-- BUILD_SHARED_LIBS ON
-- C++ Standard version: 14
-- CMAKE_CXX_FLAGS:
-- Downloading openfst from https://github.com/csukuangfj/openfst/archive/refs/tags/sherpa-onnx-2024-06-13.tar.gz
-- openfst is downloaded to /home/ytc/ytcProject/sherpa-onnx/build/_deps/openfst-src
-- The following ICU libraries were not found:
-- data (required)
-- i18n (required)
-- io (required)
-- test (required)
-- tu (required)
-- uc (required)
-- Failed to find all ICU components (missing: ICU_INCLUDE_DIR ICU_LIBRARY _ICU_REQUIRED_LIBS_FOUND)
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.7")
CMake Deprecation Warning at build/_deps/openfst-src/CMakeLists.txt:15 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- Downloading eigen from https://gitlab.com/libeigen/eigen/-/archive/3.4.0/eigen-3.4.0.tar.gz
-- eigen is downloaded to /home/ytc/ytcProject/sherpa-onnx/build/_deps/eigen-src
-- eigen's binary dir is /home/ytc/ytcProject/sherpa-onnx/build/_deps/eigen-build
-- Performing Test EIGEN_COMPILER_SUPPORT_CPP11
-- Performing Test EIGEN_COMPILER_SUPPORT_CPP11 - Success
-- Performing Test COMPILER_SUPPORT_std=cpp03
-- Performing Test COMPILER_SUPPORT_std=cpp03 - Success
-- Performing Test standard_math_library_linked_to_automatically
-- Performing Test standard_math_library_linked_to_automatically - Success
-- Standard libraries to link to explicitly: none
-- Performing Test COMPILER_SUPPORT_WERROR
-- Performing Test COMPILER_SUPPORT_WERROR - Success
-- Performing Test COMPILER_SUPPORT_pedantic
-- Performing Test COMPILER_SUPPORT_pedantic - Success
-- Performing Test COMPILER_SUPPORT_Wall
-- Performing Test COMPILER_SUPPORT_Wall - Success
-- Performing Test COMPILER_SUPPORT_Wextra
-- Performing Test COMPILER_SUPPORT_Wextra - Success
-- Performing Test COMPILER_SUPPORT_Wundef
-- Performing Test COMPILER_SUPPORT_Wundef - Success
-- Performing Test COMPILER_SUPPORT_Wcastalign
-- Performing Test COMPILER_SUPPORT_Wcastalign - Success
-- Performing Test COMPILER_SUPPORT_Wcharsubscripts
-- Performing Test COMPILER_SUPPORT_Wcharsubscripts - Success
-- Performing Test COMPILER_SUPPORT_Wnonvirtualdtor
-- Performing Test COMPILER_SUPPORT_Wnonvirtualdtor - Success
-- Performing Test COMPILER_SUPPORT_Wunusedlocaltypedefs
-- Performing Test COMPILER_SUPPORT_Wunusedlocaltypedefs - Success
-- Performing Test COMPILER_SUPPORT_Wpointerarith
-- Performing Test COMPILER_SUPPORT_Wpointerarith - Success
-- Performing Test COMPILER_SUPPORT_Wwritestrings
-- Performing Test COMPILER_SUPPORT_Wwritestrings - Success
-- Performing Test COMPILER_SUPPORT_Wformatsecurity
-- Performing Test COMPILER_SUPPORT_Wformatsecurity - Success
-- Performing Test COMPILER_SUPPORT_Wshorten64to32
-- Performing Test COMPILER_SUPPORT_Wshorten64to32 - Failed
-- Performing Test COMPILER_SUPPORT_Wlogicalop
-- Performing Test COMPILER_SUPPORT_Wlogicalop - Success
-- Performing Test COMPILER_SUPPORT_Wenumconversion
-- Performing Test COMPILER_SUPPORT_Wenumconversion - Failed
-- Performing Test COMPILER_SUPPORT_Wcpp11extensions
-- Performing Test COMPILER_SUPPORT_Wcpp11extensions - Failed
-- Performing Test COMPILER_SUPPORT_Wdoublepromotion
-- Performing Test COMPILER_SUPPORT_Wdoublepromotion - Success
-- Performing Test COMPILER_SUPPORT_Wshadow
-- Performing Test COMPILER_SUPPORT_Wshadow - Success
-- Performing Test COMPILER_SUPPORT_Wnopsabi
-- Performing Test COMPILER_SUPPORT_Wnopsabi - Success
-- Performing Test COMPILER_SUPPORT_Wnovariadicmacros
-- Performing Test COMPILER_SUPPORT_Wnovariadicmacros - Success
-- Performing Test COMPILER_SUPPORT_Wnolonglong
-- Performing Test COMPILER_SUPPORT_Wnolonglong - Success
-- Performing Test COMPILER_SUPPORT_fnochecknew
-- Performing Test COMPILER_SUPPORT_fnochecknew - Success
-- Performing Test COMPILER_SUPPORT_fnocommon
-- Performing Test COMPILER_SUPPORT_fnocommon - Success
-- Performing Test COMPILER_SUPPORT_fstrictaliasing
-- Performing Test COMPILER_SUPPORT_fstrictaliasing - Success
-- Performing Test COMPILER_SUPPORT_wd981
-- Performing Test COMPILER_SUPPORT_wd981 - Failed
-- Performing Test COMPILER_SUPPORT_wd2304
-- Performing Test COMPILER_SUPPORT_wd2304 - Failed
-- Performing Test COMPILER_SUPPORT_STRICTANSI
-- Performing Test COMPILER_SUPPORT_STRICTANSI - Failed
-- Performing Test COMPILER_SUPPORT_Qunusedarguments
-- Performing Test COMPILER_SUPPORT_Qunusedarguments - Failed
-- Performing Test COMPILER_SUPPORT_ansi
-- Performing Test COMPILER_SUPPORT_ansi - Success
-- Performing Test COMPILER_SUPPORT_OPENMP
-- Performing Test COMPILER_SUPPORT_OPENMP - Success
-- Looking for a Fortran compiler
-- Looking for a Fortran compiler - /usr/bin/f95
-- The Fortran compiler identification is GNU 4.8.5
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Check for working Fortran compiler: /usr/bin/f95 - skipped
-- Found unsuitable Qt version "5.15.2" from /home/ytc/anaconda3/bin/qmake
-- Qt4 not found, so disabling the mandelbrot and opengl demos
-- Could NOT find CHOLMOD (missing: CHOLMOD_INCLUDES CHOLMOD_LIBRARIES)
-- Could NOT find UMFPACK (missing: UMFPACK_INCLUDES UMFPACK_LIBRARIES)
-- Could NOT find KLU (missing: KLU_INCLUDES KLU_LIBRARIES)
-- Could NOT find SuperLU (missing: SUPERLU_INCLUDES SUPERLU_LIBRARIES SUPERLU_VERSION_OK) (Required is at least version "4.0")
-- Checking for one of the modules 'hwloc'
-- A version of Pastix has been found but pastix_nompi.h does not exist in the include directory. Because Eigen tests require a version without MPI, we disable the Pastix backend.
--
-- Configured Eigen 3.4.0
--
-- Available targets (use: make TARGET):
-- ---------+--------------------------------------------------------------
-- Target | Description
-- ---------+--------------------------------------------------------------
-- install | Install Eigen. Headers will be installed to:
-- | <CMAKE_INSTALL_PREFIX>/<INCLUDE_INSTALL_DIR>
-- | Using the following values:
-- | CMAKE_INSTALL_PREFIX: /usr/local
-- | INCLUDE_INSTALL_DIR: include/eigen3
-- | Change the install location of Eigen headers using:
-- | cmake . -DCMAKE_INSTALL_PREFIX=yourprefix
-- | Or:
-- | cmake . -DINCLUDE_INSTALL_DIR=yourdir
-- doc | Generate the API documentation, requires Doxygen & LaTeX
-- blas | Build BLAS library (not the same thing as Eigen)
-- uninstall| Remove files installed by the install target
-- ---------+--------------------------------------------------------------
--
-- CMAKE_SYSTEM_NAME: Linux
-- CMAKE_SYSTEM_PROCESSOR: x86_64
-- location_onnxruntime_header_dir: location_onnxruntime_header_dir-NOTFOUND
-- location_onnxruntime_lib: location_onnxruntime_lib-NOTFOUND
-- location_onnxruntime_cuda_lib: location_onnxruntime_cuda_lib-NOTFOUND
-- Could not find a pre-installed onnxruntime.
-- Downloading pre-compiled onnxruntime
-- CMAKE_SYSTEM_NAME: Linux
-- CMAKE_SYSTEM_PROCESSOR: x86_64
-- CMAKE_SYSTEM_NAME: Linux
-- CMAKE_SYSTEM_PROCESSOR: x86_64
-- Downloading onnxruntime from https://github.com/microsoft/onnxruntime/releases/download/v1.17.1/onnxruntime-linux-x64-gpu-1.17.1.tgz
-- onnxruntime is downloaded to /home/ytc/ytcProject/sherpa-onnx/build/_deps/onnxruntime-src
-- location_onnxruntime: /home/ytc/ytcProject/sherpa-onnx/build/_deps/onnxruntime-src/lib/libonnxruntime.so
-- location_onnxruntime_cuda_lib: /home/ytc/ytcProject/sherpa-onnx/build/_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so
-- location_onnxruntime_providers_shared_lib: /home/ytc/ytcProject/sherpa-onnx/build/_deps/onnxruntime-src/lib/libonnxruntime_providers_shared.so
-- onnxruntime lib files: /home/ytc/ytcProject/sherpa-onnx/build/_deps/onnxruntime-src/lib/libonnxruntime.so;/home/ytc/ytcProject/sherpa-onnx/build/_deps/onnxruntime-src/lib/libonnxruntime.so.1.17.1;/home/ytc/ytcProject/sherpa-onnx/build/_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so;/home/ytc/ytcProject/sherpa-onnx/build/_deps/onnxruntime-src/lib/libonnxruntime_providers_shared.so;/home/ytc/ytcProject/sherpa-onnx/build/_deps/onnxruntime-src/lib/libonnxruntime_providers_tensorrt.so
-- Downloading simple-sentencepiece https://github.com/pkufool/simple-sentencepiece/archive/refs/tags/v0.7.tar.gz
-- simple-sentencepiece is downloaded to /home/ytc/ytcProject/sherpa-onnx/build/_deps/simple-sentencepiece-src
-- Performing Test SBPE_COMPILER_SUPPORTS_CXX14
-- Performing Test SBPE_COMPILER_SUPPORTS_CXX14 - Success
-- C++ Standard version: 14
-- ONNXRUNTIME_DIR: /home/ytc/ytcProject/sherpa-onnx/build/_deps/onnxruntime-src
-- Downloading portaudio from http://files.portaudio.com/archives/pa_stable_v190700_20210406.tgz
-- portaudio is downloaded to /home/ytc/ytcProject/sherpa-onnx/build/_deps/portaudio-src
-- portaudio's binary dir is /home/ytc/ytcProject/sherpa-onnx/build/_deps/portaudio-build
CMake Deprecation Warning at build/_deps/portaudio-src/CMakeLists.txt:7 (CMAKE_MINIMUM_REQUIRED):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
CMake Warning (dev) at /usr/local/cmake/share/cmake-3.29/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to `find_package_handle_standard_args` (jack) does
not match the name of the calling package (Jack). This can lead to
problems in calling code that expects `find_package` result variables
(e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
build/_deps/portaudio-src/cmake_support/FindJack.cmake:34 (find_package_handle_standard_args)
build/_deps/portaudio-src/CMakeLists.txt:277 (FIND_PACKAGE)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Could NOT find jack (missing: JACK_LIBRARY JACK_INCLUDE_DIR)
-- Found ALSA: /usr/lib64/libasound.so (found version "1.1.8")
-- Downloading websocketpp from https://github.com/zaphoyd/websocketpp/archive/b9aeec6eaf3d5610503439b4fae3581d9aff08e8.zip
-- websocketpp is downloaded to /home/ytc/ytcProject/sherpa-onnx/build/_deps/websocketpp-src
-- Downloading asio https://github.com/chriskohlhoff/asio/archive/refs/tags/asio-1-24-0.tar.gz
-- asio is downloaded to /home/ytc/ytcProject/sherpa-onnx/build/_deps/asio-src
-- Downloading espeak-ng from https://github.com/csukuangfj/espeak-ng/archive/69bf6927964fb042aeb827cfdf6082a30f5802eb.zip
-- espeak-ng is downloaded to /home/ytc/ytcProject/sherpa-onnx/build/_deps/espeak_ng-src
-- espeak-ng binary dir is /home/ytc/ytcProject/sherpa-onnx/build/_deps/espeak_ng-build
-- Looking for mkstemp
-- Looking for mkstemp - found
-- Configuration:
-- shared: ON
-- mbrola: OFF (MBROLA_BIN-NOTFOUND)
-- libsonic: OFF (SONIC_LIB-NOTFOUND SONIC_INC-NOTFOUND)
-- libpcaudio: OFF (PCAUDIO_LIB-NOTFOUND PCAUDIO_INC-NOTFOUND)
-- klatt: OFF
-- speech-player: OFF
-- async: OFF
-- ESPEAK_NG_DIR: /home/ytc/ytcProject/sherpa-onnx/build/_deps/espeak_ng-src
-- Downloading piper-phonemize from https://github.com/csukuangfj/piper-phonemize/archive/dc6b5f4441bffe521047086930b0fc12686acd56.zip
-- piper-phonemize is downloaded to /home/ytc/ytcProject/sherpa-onnx/build/_deps/piper_phonemize-src
-- piper-phonemize binary dir is /home/ytc/ytcProject/sherpa-onnx/build/_deps/piper_phonemize-build
-- ESPEAK_NG_DIR: /home/ytc/ytcProject/sherpa-onnx/build/_deps/espeak_ng-src
-- ONNXRUNTIME_DIR: /home/ytc/ytcProject/sherpa-onnx/build/_deps/onnxruntime-src
-- Downloading cppjieba https://github.com/csukuangfj/cppjieba/archive/refs/tags/sherpa-onnx-2024-04-19.tar.gz
-- cppjieba is downloaded to /home/ytc/ytcProject/sherpa-onnx/build/_deps/cppjieba-src
CMake Deprecation Warning at build/_deps/cppjieba-src/CMakeLists.txt:3 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- Downloading cargs https://github.com/likle/cargs/archive/refs/tags/v1.0.3.tar.gz
-- cargs is downloaded to /home/ytc/ytcProject/sherpa-onnx/build/_deps/cargs-src
-- CMAKE_CXX_FLAGS:
-- CMAKE_CXX_FLAGS:
-- Configuring done (3857.5s)
-- Generating done (0.2s)
-- Build files have been written to: /home/ytc/ytcProject/sherpa-onnx/build
from sherpa-onnx.
Please run
cd /path/to/sherpa-onnx
mkdir -p ../../_deps/onnxruntime-src/lib
cp -v build/_deps/onnxruntime-src/lib/* ../../_deps/onnxruntime-src/lib
# And run ./build/bin/sherpa-onnx-offline again
from sherpa-onnx.
Please run
cd /path/to/sherpa-onnx mkdir -p ../../_deps/onnxruntime-src/lib cp -v build/_deps/onnxruntime-src/lib/* ../../_deps/onnxruntime-src/lib # And run ./build/bin/sherpa-onnx-offline again
(kaldi) [ytc@localhost sherpa-onnx]$ mkdir -p ../../_deps/onnxruntime-src/lib
(kaldi) [ytc@localhost sherpa-onnx]$ cp -v build/_deps/onnxruntime-src/lib/* ../../_deps/onnxruntime-src/lib
"build/_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so" -> "../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so"
"build/_deps/onnxruntime-src/lib/libonnxruntime_providers_shared.so" -> "../../_deps/onnxruntime-src/lib/libonnxruntime_providers_shared.so"
"build/_deps/onnxruntime-src/lib/libonnxruntime_providers_tensorrt.so" -> "../../_deps/onnxruntime-src/lib/libonnxruntime_providers_tensorrt.so"
"build/_deps/onnxruntime-src/lib/libonnxruntime.so" -> "../../_deps/onnxruntime-src/lib/libonnxruntime.so"
"build/_deps/onnxruntime-src/lib/libonnxruntime.so.1.17.1" -> "../../_deps/onnxruntime-src/lib/libonnxruntime.so.1.17.1"
(kaldi) [ytc@localhost sherpa-onnx]$ ./build/bin/sherpa-onnx-offline \
--tokens=./sherpa-onnx-zipformer-multi-zh-hans-2023-9-2/tokens.txt
--encoder=./sherpa-onnx-zipformer-multi-zh-hans-2023-9-2/encoder-epoch-20-avg-1.int8.onnx
--decoder=./sherpa-onnx-zipformer-multi-zh-hans-2023-9-2/decoder-epoch-20-avg-1.onnx
--joiner=./sherpa-onnx-zipformer-multi-zh-hans-2023-9-2/joiner-epoch-20-avg-1.int8.onnx
--provider=cuda
./sherpa-onnx-zipformer-multi-zh-hans-2023-9-2/test_wavs/0.wav
./sherpa-onnx-zipformer-multi-zh-hans-2023-9-2/test_wavs/1.wav
./sherpa-onnx-zipformer-multi-zh-hans-2023-9-2/test_wavs/8k.wav
Segmentation fault (core dumped)
from sherpa-onnx.
Ok, so it is the issue of your environment, I think.
Please follow https://onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html
to install
- cuda 11.8
- cudnn 8.2.4
from sherpa-onnx.
Ok, so it is the issue of your environment, I think.
Please follow https://onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html to install
- cuda 11.8
- cudnn 8.2.4
(kaldi) [ytc@localhost ~]$ nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2022 NVIDIA Corporation
Built on Wed_Sep_21_10:33:58_PDT_2022
Cuda compilation tools, release 11.8, V11.8.89
Build cuda_11.8.r11.8/compiler.31833905_0
from sherpa-onnx.
Ok, so it is the issue of your environment, I think.
Please follow https://onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html to install
- cuda 11.8
- cudnn 8.2.4
I followed this step to install the environment
https://k2-fsa.github.io/k2/installation/cuda-cudnn.html#cuda-11-8
from sherpa-onnx.
Ok, so it is the issue of your environment, I think.
Please follow https://onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html to install
- cuda 11.8
- cudnn 8.2.4
I used Pytorch in this environment and it's all working fine
from sherpa-onnx.
Ok, so it is the issue of your environment, I think.
Please follow https://onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html to install
- cuda 11.8
- cudnn 8.2.4
I reinstalled cuda11.8 and cudnn8.7.0 but still get the same error
from sherpa-onnx.
Related Issues (20)
- Import Piper / VITS as iOS Custom System Voices for TTS using AVSpeechSynthesisProviderAudioUnit Extension in Swift HOT 1
- Convert new piper tts models. HOT 1
- Multi-language support issue with Sherpa ONNX conversion (on android device) HOT 1
- Use offline model to stream online HOT 1
- Errors and Questions regarding exporting a model HOT 1
- 在做ASR时,如果对麦克风收音做降噪处理? HOT 2
- TTS,除了命令行调用外,能否在Python里直接调用?想避免模型重复加载耗时 HOT 4
- [Help wanted] Add OnlineNeMoCtcModelConfig to C API
- [Help wanted] Flutter APP for text-to-speech
- 把SherpaOnnx 样例的Android kotlin代码转成Java就无法识别声音 HOT 3
- 如何调节输出音频的音量 HOT 1
- The command line tool named 'sherpa-onnx-cli' for convert the original keywords to tokens HOT 2
- Keyword spotting:iOS的keywords模型有吗 HOT 1
- Could you upload the apk of the latest update HOT 6
- swift api 中的hotwords,等同kotlin里的keywords吗 HOT 2
- I'm searching for the sherpa app in which the user can load a gguf model locally and chat with it using text messages HOT 1
- 发型的paraformer 2pass apk包,这个paraformer是large模型吗 HOT 2
- win x64 使用paraformer模型的问题 HOT 12
- 请问python脚本下usb声卡语音不能识别,怎么解决 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sherpa-onnx.