Posts: 6
Threads: 3
Joined: Dec 2018
I'd like to use AMD HIP. What I did on my Ubuntu 20.04 kernel 5.11 box (conform documentation):
Code:
wget https://repo.radeon.com/amdgpu-install/22.10/ubuntu/focal/amdgpu-install_22.10.50100-1_all.deb
sudo apt-get install ./amdgpu-install_22.10.50100-1_all.deb
sudo apt-get update
sudo apt-get install ocl-icd-libopencl1 opencl-headers clinfo rocm-hip-sdk rocm-hip-runtime rocm-opencl-sdk rocm-opencl-runtime rocminfo rocm-utils amdgpu-dkms
Everthing installs just fine, DKMS module is working (after a reboot obviously). But... no HIP-support in hashcat:
Code:
cracker@amd:/opt/hashcat-6.2.6$ sudo ./hashcat.bin -I
hashcat (v6.2.6) starting in backend information mode
OpenCL Info:
============
OpenCL Platform ID #1
Vendor..: Advanced Micro Devices, Inc.
Name....: AMD Accelerated Parallel Processing
Version.: OpenCL 2.1 AMD-APP (3423.0)
Backend Device ID #1
Type...........: GPU
Vendor.ID......: 1
Vendor.........: Advanced Micro Devices, Inc.
Name...........: AMD Radeon RX 6800
Version........: OpenCL 2.0
Processor(s)...: 30
Clock..........: 2475
Memory.Total...: 16368 MB (limited to 13912 MB allocatable in one block)
Memory.Free....: 16256 MB
Local.Memory...: 64 KB
OpenCL.Version.: OpenCL C 2.0
Driver.Version.: 3423.0 (HSA1.1,LC)
PCI.Addr.BDF...: 05:00.0
cracker@amd:/opt/hashcat-6.2.6$
Just OpenCL. What am I doing wrong? Thank you!
Posts: 385
Threads: 1
Joined: Aug 2020
Posts: 6
Threads: 3
Joined: Dec 2018
(10-19-2022, 11:07 AM)marc1n Wrote: https://hashcat.net/forum/thread-10503.html
In this thread atom wrote: "I've switched hashcat to work with Linux in 6.2.5 since I moved my AMD testing GPU from a Windows Box to a Linux Box."
I see no pointer on how to get it working on Linux though, other than the instructions I've followed. So question remains: how to get HIP working on Linux?
Posts: 385
Threads: 1
Joined: Aug 2020
(10-20-2022, 08:01 PM)djeeman Wrote: (10-19-2022, 11:07 AM)marc1n Wrote: https://hashcat.net/forum/thread-10503.html
In this thread atom wrote: "I've switched hashcat to work with Linux in 6.2.5 since I moved my AMD testing GPU from a Windows Box to a Linux Box."
I see no pointer on how to get it working on Linux though, other than the instructions I've followed. So question remains: how to get HIP working on Linux?
https://rocmdocs.amd.com/en/latest/Insta...ation.html
Posts: 6
Threads: 3
Joined: Dec 2018
Quote:https://rocmdocs.amd.com/en/latest/Insta...ation.html
HIP is setup according to instructions, but no HIP:
Code:
root@cracker:/opt/hashcat-6.2.6# /opt/rocm/bin/hipconfig --full
HIP version : 5.1.20531-cacfa990
== hipconfig
HIP_PATH : /opt/rocm-5.1.0/hip
ROCM_PATH : /opt/rocm-5.1.0
HIP_COMPILER : clang
HIP_PLATFORM : amd
HIP_RUNTIME : rocclr
CPP_CONFIG : -D__HIP_PLATFORM_HCC__= -D__HIP_PLATFORM_AMD__= -I/opt/rocm-5.1.0/hip/include -I/opt/rocm-5.1.0/llvm/bin/../lib/clang/14.0.0 -I/opt/rocm-5.1.0/hsa/include
== hip-clang
HSA_PATH : /opt/rocm-5.1.0/hsa
HIP_CLANG_PATH : /opt/rocm-5.1.0/llvm/bin
AMD clang version 14.0.0 (https://github.com/RadeonOpenCompute/llvm-project roc-5.1.0 22114 5cba46feb6af367b1cafaa183ec42dbfb8207b14)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/rocm-5.1.0/llvm/bin
AMD LLVM version 14.0.0git
Optimized build.
Default target: x86_64-unknown-linux-gnu
Host CPU: ivybridge
Registered Targets:
amdgcn - AMD GCN GPUs
r600 - AMD GPUs HD2XXX-HD6XXX
x86 - 32-bit X86: Pentium-Pro and above
x86-64 - 64-bit X86: EM64T and AMD64
hip-clang-cxxflags : -std=c++11 -isystem "/opt/rocm-5.1.0/llvm/lib/clang/14.0.0/include/.." -isystem /opt/rocm-5.1.0/hsa/include -isystem "/opt/rocm-5.1.0/hip/include" -O3
hip-clang-ldflags : -L"/opt/rocm-5.1.0/hip/lib" -O3 -lgcc_s -lgcc -lpthread -lm -lrt
=== Environment Variables
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
== Linux Kernel
Hostname : cracker
Linux cracker 5.11.0-46-generic #51~20.04.1-Ubuntu SMP Fri Jan 7 06:51:40 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.5 LTS
Release: 20.04
Codename: focal
root@cracker:/opt/hashcat-6.2.6# ./hashcat.bin -I
hashcat (v6.2.6) starting in backend information mode
OpenCL Info:
============
OpenCL Platform ID #1
Vendor..: Advanced Micro Devices, Inc.
Name....: AMD Accelerated Parallel Processing
Version.: OpenCL 2.1 AMD-APP (3423.0)
Backend Device ID #1
Type...........: GPU
Vendor.ID......: 1
Vendor.........: Advanced Micro Devices, Inc.
Name...........: AMD Radeon RX 6800
Version........: OpenCL 2.0
Processor(s)...: 30
Clock..........: 2475
Memory.Total...: 16368 MB (limited to 13912 MB allocatable in one block)
Memory.Free....: 16256 MB
Local.Memory...: 64 KB
OpenCL.Version.: OpenCL C 2.0
Driver.Version.: 3423.0 (HSA1.1,LC)
PCI.Addr.BDF...: 05:00.0
root@cracker:/opt/hashcat-6.2.6#
Posts: 12
Threads: 2
Joined: Mar 2020
I know this is old at this point, but did you get HIP working? I was able to get Hashcat to prefer HIP by doing ROCM install with --usecase=hip,lhr then building Hashcat from the git and then doing another ROCM install with --usecase=rocm. It sees both, but skips OpenCL.
(10-25-2022, 12:19 AM)djeeman Wrote: Quote:https://rocmdocs.amd.com/en/latest/Insta...ation.html
HIP is setup according to instructions, but no HIP:
Code:
root@cracker:/opt/hashcat-6.2.6# /opt/rocm/bin/hipconfig --full
HIP version : 5.1.20531-cacfa990
== hipconfig
HIP_PATH : /opt/rocm-5.1.0/hip
ROCM_PATH : /opt/rocm-5.1.0
HIP_COMPILER : clang
HIP_PLATFORM : amd
HIP_RUNTIME : rocclr
CPP_CONFIG : -D__HIP_PLATFORM_HCC__= -D__HIP_PLATFORM_AMD__= -I/opt/rocm-5.1.0/hip/include -I/opt/rocm-5.1.0/llvm/bin/../lib/clang/14.0.0 -I/opt/rocm-5.1.0/hsa/include
== hip-clang
HSA_PATH : /opt/rocm-5.1.0/hsa
HIP_CLANG_PATH : /opt/rocm-5.1.0/llvm/bin
AMD clang version 14.0.0 (https://github.com/RadeonOpenCompute/llvm-project roc-5.1.0 22114 5cba46feb6af367b1cafaa183ec42dbfb8207b14)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/rocm-5.1.0/llvm/bin
AMD LLVM version 14.0.0git
Optimized build.
Default target: x86_64-unknown-linux-gnu
Host CPU: ivybridge
Registered Targets:
amdgcn - AMD GCN GPUs
r600 - AMD GPUs HD2XXX-HD6XXX
x86 - 32-bit X86: Pentium-Pro and above
x86-64 - 64-bit X86: EM64T and AMD64
hip-clang-cxxflags : -std=c++11 -isystem "/opt/rocm-5.1.0/llvm/lib/clang/14.0.0/include/.." -isystem /opt/rocm-5.1.0/hsa/include -isystem "/opt/rocm-5.1.0/hip/include" -O3
hip-clang-ldflags : -L"/opt/rocm-5.1.0/hip/lib" -O3 -lgcc_s -lgcc -lpthread -lm -lrt
=== Environment Variables
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
== Linux Kernel
Hostname : cracker
Linux cracker 5.11.0-46-generic #51~20.04.1-Ubuntu SMP Fri Jan 7 06:51:40 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.5 LTS
Release: 20.04
Codename: focal
root@cracker:/opt/hashcat-6.2.6# ./hashcat.bin -I
hashcat (v6.2.6) starting in backend information mode
OpenCL Info:
============
OpenCL Platform ID #1
Vendor..: Advanced Micro Devices, Inc.
Name....: AMD Accelerated Parallel Processing
Version.: OpenCL 2.1 AMD-APP (3423.0)
Backend Device ID #1
Type...........: GPU
Vendor.ID......: 1
Vendor.........: Advanced Micro Devices, Inc.
Name...........: AMD Radeon RX 6800
Version........: OpenCL 2.0
Processor(s)...: 30
Clock..........: 2475
Memory.Total...: 16368 MB (limited to 13912 MB allocatable in one block)
Memory.Free....: 16256 MB
Local.Memory...: 64 KB
OpenCL.Version.: OpenCL C 2.0
Driver.Version.: 3423.0 (HSA1.1,LC)
PCI.Addr.BDF...: 05:00.0
root@cracker:/opt/hashcat-6.2.6#