Open baryluk opened 5 years ago
And yes, it is used directly by hcc
binary:
$ objdump -R /opt/rocm/hcc/bin/hcc | grep -i tinf
00000000043a1228 R_X86_64_JUMP_SLOT set_curterm@NCURSES_TINFO_5.0.19991023
00000000043a1370 R_X86_64_JUMP_SLOT del_curterm@NCURSES_TINFO_5.0.19991023
00000000043a14a0 R_X86_64_JUMP_SLOT tigetnum@NCURSES_TINFO_5.0.19991023
00000000043a18d8 R_X86_64_JUMP_SLOT setupterm@NCURSES_TINFO_5.0.19991023
I have the same issue with ROCm 3.10, on Ubuntu 20.04, Linux kernel 5.9.12. I installed rocm-opencl3.10.0, set up groups (video & render), set up kfd rights, set up LD_LIBRARY_PATH: export LD_LIBRARY_PATH=/opt/rocm-3.10.0/opencl/lib
Now when I run
~$ /usr/bin/clinfo
dlerror: libtinfo.so.5: cannot open shared object file: No such file or directory
~$ /opt/rocm-3.10.0/opencl/bin/clinfo
dlerror: libtinfo.so.5: cannot open shared object file: No such file or directory
ERROR: clGetPlatformIDs(-1001)
I tried to install manually on ubuntu libtinfo-dev, but that installed /usr/lib/x86_64-linux-gnu/libtinfo.so.6 and did not fix the problem.
Unless I'm doing something wrong, this seems a serious issue, affecting one of the supported OSes (Ubuntu 20.04). I'd like to have at least a workaround.
I have the same issue with ROCm 3.10, on Ubuntu 20.04, Linux kernel 5.9.12. I installed rocm-opencl3.10.0, set up groups (video & render), set up kfd rights, set up LD_LIBRARY_PATH: export LD_LIBRARY_PATH=/opt/rocm-3.10.0/opencl/lib
Now when I run
~$ /usr/bin/clinfo dlerror: libtinfo.so.5: cannot open shared object file: No such file or directory ~$ /opt/rocm-3.10.0/opencl/bin/clinfo dlerror: libtinfo.so.5: cannot open shared object file: No such file or directory ERROR: clGetPlatformIDs(-1001)
I tried to install manually on ubuntu libtinfo-dev, but that installed /usr/lib/x86_64-linux-gnu/libtinfo.so.6 and did not fix the problem.
Unless I'm doing something wrong, this seems a serious issue, affecting one of the supported OSes (Ubuntu 20.04). I'd like to have at least a workaround.
You need to install libinfo5
from Ubuntu. I explained it in the first post. just sudo apt install libtinfo5
and it should start working. You don't need libtinfo-dev
(you can remove it if you like).
However, your issue is not with hcc
, but something else, so you should go to different issue tracker. You can run strace -f /opt/rocm-3.10.0/opencl/bin/clinfo
, to find out more maybe.
Also, It appears that rocm-dev
does depend on rocm-gdb
which depend on libtinfo5
, which is nice, but that is for ROCgdb.
I am not sure if the issue with hcc
package got fixed.
@preda Also, I don't think it is a good github issue tracker for your issue. You are reporting issue with clinfo. This repo is for hcc, which is not even distributed with ROCm 3.10 anymore.
Please go to main ROCm issue tracker https://github.com/RadeonOpenCompute/ROCm and report the problem there.
Thanks, opened https://github.com/RadeonOpenCompute/ROCm/issues/1324
On Wed, 9 Dec 2020 at 11:36, Witold Baryluk notifications@github.com wrote:
@preda https://github.com/preda Also, I don't think it is a good github issue tracker for your issue. You are reporting issue with clinfo. This repo is for hcc, which is not even distributed with ROCm 3.10 anymore.
Please go to main ROCm issue tracker https://github.com/RadeonOpenCompute/ROCm and report the problem there.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/RadeonOpenCompute/hcc/issues/964#issuecomment-741323776, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFMO6SPYQMEJGITB5LP3ODST3BARANCNFSM4GKDB7KA .
Installing
libtinfo5
packages solved the problem.Also the binary looks to be compiled against libtinfo5, but should be compiled with libtinfo6 and linked against libtinfo6, because libtinfo5 is not longer supported and developer. libtinfo6 is source compatible with version 5.