Posts: 16
Threads: 4
Joined: May 2012
I found out that there is requirements of Ubuntu 20.04.02 and ROCm 4.3 for the next release of hashcat, also 6.2.4 which will come some time.
So I re-installed Ubuntu 20.04.02 and installed ROCm 4.3 without any issues. But somehow hashcat can't find OpenCl.
Since this is not much of information I will put some logs and information here.
Hascat Version: 6.2.3
GPU: Radeon RX 580
Driver Name: ROCm
Driver version: 4.3.0.40300-52
Platform: Linux
Distro: Ubuntu 20.04.02
Kernel: 5.8.0-43-generic
./hashcat.bin -I
https://pastebin.com/iNRNzgJT
/opt/rocm/opencl/bin/clinfo
https://pastebin.com/QNWfT8Ez
I don't know how much more information that is needed. I'm totally stuck and can't get ROCm to work.
This would really be nice with some help, or maybe my hardware is totally outdated and need to downgrade.
Posts: 2,936
Threads: 12
Joined: May 2012
08-26-2021, 12:41 AM
(This post was last modified: 08-26-2021, 12:44 AM by epixoip.)
Try this, as root:
Code:
cat << EOF >/etc/ld.so.conf.d/rocm.conf
/opt/rocm/lib
/opt/rocm/lib64
EOF
ldconfig
Posts: 16
Threads: 4
Joined: May 2012
(08-26-2021, 12:41 AM)epixoip Wrote: Try this, as root:
Code:
cat << EOF >/etc/ld.so.conf.d/rocm.conf
/opt/rocm/lib
/opt/rocm/lib64
EOF
ldconfig
I guess this would have fixed the issue? I tried to run hashcat again. But only got the same error.
Posts: 2,936
Threads: 12
Joined: May 2012
Please run:
Code:
cat /etc/ld.so.conf.d/rocm.conf
ls -l /opt/rocm/lib64
Posts: 16
Threads: 4
Joined: May 2012
I tried this command again and it looks like it finds the hardware now when i do a: ./hashcat.bin -I
https://pastebin.com/T20C94TC
But if I try to make a benchmark I get a lot of errors, looks like they come from hashcat or maybe my side?
https://pastebin.com/BTsAz7m0
Posts: 16
Threads: 4
Joined: May 2012
(08-26-2021, 12:50 AM)epixoip Wrote: Please run:
Code:
cat /etc/ld.so.conf.d/rocm.conf
ls -l /opt/rocm/lib64
Looks like something is wrong. The folder can't be found at all.
Code:
ls: cannot access '/opt/rocm/lib64': No such file or directory
Posts: 2,936
Threads: 12
Joined: May 2012
Looks like you're encountering an error with the HIP backend, you should open a GitHub issue for that. In the meantime, tell Hashcat to use the OpenCL backend instead of HIP.
Missing /opt/rocm/lib64 is strange, can you show me the output of:
Code:
find /opt -type d -name lib
Posts: 16
Threads: 4
Joined: May 2012
08-26-2021, 10:52 AM
(This post was last modified: 08-26-2021, 01:38 PM by foordeluxe.)
(08-26-2021, 01:51 AM)epixoip Wrote: Looks like you're encountering an error with the HIP backend, you should open a GitHub issue for that. In the meantime, tell Hashcat to use the OpenCL backend instead of HIP.
Missing /opt/rocm/lib64 is strange, can you show me the output of:
Code:
find /opt -type d -name lib
How do I tell hashcat to use OpenCL instead?
Edit: I tried with --opencl-device-types, but still the same error . I don't know if this is the correct way.
Edit 1: I found out that -d x, will change devices when i searched around. If i change to 2, it works good.
Now I only need help with HIP. And I guess the best way would be to report this on github.
Anyway, thanks so much for your help.
Here comes the logs:
Code:
/opt/rocm-4.3.0/oam/lib
/opt/rocm-4.3.0/rocm_smi/lib
/opt/rocm-4.3.0/llvm/lib-debug/src/openmp/libomptarget/plugins/remote/lib
/opt/rocm-4.3.0/llvm/lib
/opt/rocm-4.3.0/llvm/lib/clang/13.0.0/lib
/opt/rocm-4.3.0/rocclr/lib
/opt/rocm-4.3.0/hsa-amd-aqlprofile/lib
/opt/rocm-4.3.0/hsa/lib
/opt/rocm-4.3.0/rocprofiler/lib
/opt/rocm-4.3.0/opencl/lib
/opt/rocm-4.3.0/hip/lib
/opt/rocm-4.3.0/roctracer/lib
/opt/rocm-4.3.0/lib