I have used dual AMD rx6800 on Win11 and it worked fine. Just recently tried same config on Ubuntu 22.04.1 and stuck.
Followed AMD instructions to install AMD drivers and ROCM.
Code:
sudo apt update
wget https://repo.radeon.com/amdgpu-install/23.20.00.48/ubuntu/jammy/amdgpu-install_5.7.00.48.50700-1_all.deb
sudo apt install ./amdgpu-install_5.7.00.48.50700-1_all.deb
sudo amdgpu-install -y --usecase=graphics,rocm
sudo usermod -a -G render,video $LOGNAME
All went fine, then downloaded the latest hashcat and built, no errors. But when i tried to benchmark it failed.
Code:
dem@xeon:~/Documents/hashcat$ sudo ./hashcat -b
hashcat (v6.2.6-846-g4d412c8e0) starting in benchmark mode
Benchmarking uses hand-optimized kernel code by default.
You can use it in your cracking session by setting the -O option.
Note: Using optimized kernel code limits the maximum supported password length.
To disable the optimized kernel code in benchmark mode, use the -w option.
HIP API (HIP 5.7.31921)
=======================
* Device #1: AMD Radeon RX 6800, 16332/16368 MB, 30MCU
* Device #2: AMD Radeon RX 6800, 16340/16368 MB, 30MCU
OpenCL API (OpenCL 2.1 AMD-APP (3590.0)) - Platform #1 [Advanced Micro Devices, Inc.]
=====================================================================================
* Device #3: AMD Radeon RX 6800, skipped
* Device #4: AMD Radeon RX 6800, skipped
OpenCL API (OpenCL 2.0 pocl 1.8 Linux, None+Asserts, RELOC, LLVM 11.1.0, SLEEF, DISTRO, POCL_DEBUG) - Platform #2 [The pocl project]
=====================================================================================================================================
* Device #5: pthread-Intel(R) Xeon(R) CPU E5-2690 v2 @ 3.00GHz, skipped
Benchmark relevant options:
===========================
* --backend-devices-virtual=1
* --optimized-kernel-enable
-------------------
* Hash-Mode 0 (MD5)
-------------------
hiprtcCompileProgram(): HIPRTC_ERROR_COMPILATION
lld: error: undefined hidden symbol: __ockl_get_group_id
>>> referenced by /home/dem/Documents/hashcat/comgr-00af85/input/LLVMBitcode.bc.o:(gpu_decompress)
>>> referenced by /home/dem/Documents/hashcat/comgr-00af85/input/LLVMBitcode.bc.o:(gpu_decompress)
>>> referenced by /home/dem/Documents/hashcat/comgr-00af85/input/LLVMBitcode.bc.o:(gpu_memset)
>>> referenced 7 more times
lld: error: undefined hidden symbol: __ockl_get_local_size
>>> referenced by /home/dem/Documents/hashcat/comgr-00af85/input/LLVMBitcode.bc.o:(gpu_decompress)
>>> referenced by /home/dem/Documents/hashcat/comgr-00af85/input/LLVMBitcode.bc.o:(gpu_decompress)
>>> referenced by /home/dem/Documents/hashcat/comgr-00af85/input/LLVMBitcode.bc.o:(gpu_memset)
>>> referenced 7 more times
lld: error: undefined hidden symbol: __ockl_get_local_id
>>> referenced by /home/dem/Documents/hashcat/comgr-00af85/input/LLVMBitcode.bc.o:(gpu_decompress)
>>> referenced by /home/dem/Documents/hashcat/comgr-00af85/input/LLVMBitcode.bc.o:(gpu_decompress)
>>> referenced by /home/dem/Documents/hashcat/comgr-00af85/input/LLVMBitcode.bc.o:(gpu_memset)
>>> referenced 7 more times
* Device #1: Kernel /home/dem/Documents/hashcat/OpenCL/shared.cl build failed.
* Device #1: Kernel /home/dem/Documents/hashcat/OpenCL/shared.cl build failed.
I have made other try and installed server version of Ubuntu 22.04.3 LTS with bit modifications to way of installing amd stuff and all seems working fine now.
Code:
wget https://repo.radeon.com/amdgpu-install/5.7.2/ubuntu/jammy/amdgpu-install_5.7.50702-1_all.deb
sudo apt install ./amdgpu-install_5.7.50702-1_all.deb
sudo amdgpu-install --opencl=rocr --no-dkms --no-32
Info
Code:
$ sudo ./hashcat -I
hashcat (v6.2.6-846-g4d412c8e0) starting in backend information mode
hipMemGetInfo(): 1
hipMemGetInfo(): 1
HIP Info:
=========
HIP.Version.: 5.7.31921
Backend Device ID #1 (Alias: #3)
Name...........: AMD Radeon RX 6800
Processor(s)...: 30
Clock..........: 2475
Memory.Total...: 16368 MB
Memory.Free....: 0 MB
Local.Memory...: 64 KB
PCI.Addr.BDFe..: 0000:04:00.0
Backend Device ID #2 (Alias: #4)
Name...........: AMD Radeon RX 6800
Processor(s)...: 30
Clock..........: 2475
Memory.Total...: 16368 MB
Memory.Free....: 0 MB
Local.Memory...: 64 KB
PCI.Addr.BDFe..: 0000:83:00.0
OpenCL Info:
============
OpenCL Platform ID #1
Vendor..: Advanced Micro Devices, Inc.
Name....: AMD Accelerated Parallel Processing
Version.: OpenCL 2.1 AMD-APP (3590.0)
Backend Device ID #3 (Alias: #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.: 3590.0 (HSA1.1,LC)
PCI.Addr.BDF...: 04:00.0
Backend Device ID #4 (Alias: #2)
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.: 3590.0 (HSA1.1,LC)
PCI.Addr.BDF...: 83:00.0
Benchmarking
Code:
$ sudo ./hashcat -b
hashcat (v6.2.6-846-g4d412c8e0) starting in benchmark mode
Benchmarking uses hand-optimized kernel code by default.
You can use it in your cracking session by setting the -O option.
Note: Using optimized kernel code limits the maximum supported password length.
To disable the optimized kernel code in benchmark mode, use the -w option.
hipMemGetInfo(): 1
hipMemGetInfo(): 1
HIP API (HIP 5.7.31921)
=======================
* Device #1: AMD Radeon RX 6800, skipped
* Device #2: AMD Radeon RX 6800, skipped
OpenCL API (OpenCL 2.1 AMD-APP (3590.0)) - Platform #1 [Advanced Micro Devices, Inc.]
=====================================================================================
* Device #3: AMD Radeon RX 6800, 16256/16368 MB (13912 MB allocatable), 30MCU
* Device #4: AMD Radeon RX 6800, 16256/16368 MB (13912 MB allocatable), 30MCU
Benchmark relevant options:
===========================
* --backend-devices-virtual=1
* --optimized-kernel-enable
-------------------
* Hash-Mode 0 (MD5)
-------------------
Speed.#3.........: 42119.2 MH/s (23.33ms) @ Accel:128 Loops:1024 Thr:256 Vec:1
Speed.#4.........: 41635.5 MH/s (23.75ms) @ Accel:128 Loops:1024 Thr:256 Vec:1
Speed.#*.........: 83754.8 MH/s
----------------------
* Hash-Mode 100 (SHA1)
----------------------
Speed.#3.........: 16374.4 MH/s (60.91ms) @ Accel:128 Loops:1024 Thr:256 Vec:1
Speed.#4.........: 16087.0 MH/s (62.07ms) @ Accel:128 Loops:1024 Thr:256 Vec:1
Speed.#*.........: 32461.4 MH/s
---------------------------
* Hash-Mode 1400 (SHA2-256)
---------------------------
Speed.#3.........: 7028.1 MH/s (71.04ms) @ Accel:64 Loops:1024 Thr:256 Vec:1
Speed.#4.........: 6910.0 MH/s (72.30ms) @ Accel:64 Loops:1024 Thr:256 Vec:1
Speed.#*.........: 13938.2 MH/s
---------------------------
* Hash-Mode 1700 (SHA2-512)
---------------------------
Speed.#3.........: 1639.3 MH/s (76.18ms) @ Accel:32 Loops:512 Thr:256 Vec:1
Speed.#4.........: 1609.6 MH/s (77.60ms) @ Accel:32 Loops:512 Thr:256 Vec:1
Speed.#*.........: 3248.9 MH/s
-------------------------------------------------------------
* Hash-Mode 22000 (WPA-PBKDF2-PMKID+EAPOL) [Iterations: 4095]
-------------------------------------------------------------
Speed.#3.........: 845.5 kH/s (71.79ms) @ Accel:64 Loops:512 Thr:256 Vec:1
Speed.#4.........: 817.6 kH/s (73.62ms) @ Accel:64 Loops:512 Thr:256 Vec:1
Speed.#*.........: 1663.1 kH/s
-----------------------
* Hash-Mode 1000 (NTLM)
-----------------------
Speed.#3.........: 75815.6 MH/s (12.68ms) @ Accel:256 Loops:1024 Thr:128 Vec:1
Speed.#4.........: 75074.3 MH/s (12.94ms) @ Accel:256 Loops:1024 Thr:128 Vec:1
Speed.#*.........: 150.9 GH/s
---------------------
* Hash-Mode 3000 (LM)
---------------------
Speed.#3.........: 42313.5 MH/s (23.18ms) @ Accel:256 Loops:1024 Thr:128 Vec:1
Speed.#4.........: 42380.3 MH/s (23.24ms) @ Accel:256 Loops:1024 Thr:128 Vec:1
Speed.#*.........: 84693.8 MH/s
--------------------------------------------
* Hash-Mode 5500 (NetNTLMv1 / NetNTLMv1+ESS)
--------------------------------------------
Speed.#3.........: 48175.2 MH/s (20.30ms) @ Accel:128 Loops:1024 Thr:256 Vec:1
Speed.#4.........: 47643.9 MH/s (20.68ms) @ Accel:128 Loops:1024 Thr:256 Vec:1
Speed.#*.........: 95819.1 MH/s
----------------------------
* Hash-Mode 5600 (NetNTLMv2)
----------------------------
Speed.#3.........: 2930.0 MH/s (85.31ms) @ Accel:64 Loops:512 Thr:256 Vec:1
Speed.#4.........: 2863.7 MH/s (87.33ms) @ Accel:64 Loops:512 Thr:256 Vec:1
Speed.#*.........: 5793.7 MH/s
--------------------------------------------------------
* Hash-Mode 1500 (descrypt, DES (Unix), Traditional DES)
--------------------------------------------------------
Speed.#3.........: 1610.5 MH/s (77.52ms) @ Accel:16 Loops:1024 Thr:256 Vec:1
Speed.#4.........: 1581.9 MH/s (78.96ms) @ Accel:16 Loops:1024 Thr:256 Vec:1
Speed.#*.........: 3192.4 MH/s
------------------------------------------------------------------------------
* Hash-Mode 500 (md5crypt, MD5 (Unix), Cisco-IOS $1$ (MD5)) [Iterations: 1000]
------------------------------------------------------------------------------
Speed.#3.........: 12759.2 kH/s (72.65ms) @ Accel:256 Loops:1000 Thr:128 Vec:1
Speed.#4.........: 11691.1 kH/s (77.52ms) @ Accel:256 Loops:1000 Thr:128 Vec:1
Speed.#*.........: 24450.3 kH/s
----------------------------------------------------------------
* Hash-Mode 3200 (bcrypt $2*$, Blowfish (Unix)) [Iterations: 32]
----------------------------------------------------------------
Speed.#3.........: 42787 H/s (86.27ms) @ Accel:32 Loops:8 Thr:16 Vec:1
Speed.#4.........: 42838 H/s (87.27ms) @ Accel:32 Loops:8 Thr:16 Vec:1
Speed.#*.........: 85625 H/s
--------------------------------------------------------------------
* Hash-Mode 1800 (sha512crypt $6$, SHA512 (Unix)) [Iterations: 5000]
--------------------------------------------------------------------
Speed.#3.........: 292.4 kH/s (88.60ms) @ Accel:2048 Loops:512 Thr:128 Vec:1
Speed.#4.........: 285.4 kH/s (90.91ms) @ Accel:2048 Loops:512 Thr:128 Vec:1
Speed.#*.........: 577.8 kH/s
--------------------------------------------------------
* Hash-Mode 7500 (Kerberos 5, etype 23, AS-REQ Pre-Auth)
--------------------------------------------------------
Speed.#3.........: 835.8 MH/s (74.70ms) @ Accel:512 Loops:128 Thr:32 Vec:1
Speed.#4.........: 820.1 MH/s (76.25ms) @ Accel:512 Loops:128 Thr:32 Vec:1
Speed.#*.........: 1655.9 MH/s
-------------------------------------------------
* Hash-Mode 13100 (Kerberos 5, etype 23, TGS-REP)
-------------------------------------------------
Speed.#3.........: 805.2 MH/s (77.53ms) @ Accel:64 Loops:1024 Thr:32 Vec:1
Speed.#4.........: 790.2 MH/s (79.17ms) @ Accel:64 Loops:1024 Thr:32 Vec:1
Speed.#*.........: 1595.4 MH/s
---------------------------------------------------------------------------------
* Hash-Mode 15300 (DPAPI masterkey file v1 (context 1 and 2)) [Iterations: 23999]
---------------------------------------------------------------------------------
Speed.#3.........: 142.8 kH/s (72.60ms) @ Accel:64 Loops:512 Thr:256 Vec:1
Speed.#4.........: 140.3 kH/s (73.87ms) @ Accel:64 Loops:512 Thr:256 Vec:1
Speed.#*.........: 283.1 kH/s
---------------------------------------------------------------------------------
* Hash-Mode 15900 (DPAPI masterkey file v2 (context 1 and 2)) [Iterations: 12899]
---------------------------------------------------------------------------------
Speed.#3.........: 61838 H/s (78.35ms) @ Accel:512 Loops:128 Thr:32 Vec:1
Speed.#4.........: 61023 H/s (79.35ms) @ Accel:512 Loops:128 Thr:32 Vec:1
Speed.#*.........: 122.9 kH/s
------------------------------------------------------------------
* Hash-Mode 7100 (macOS v10.8+ (PBKDF2-SHA512)) [Iterations: 1023]
------------------------------------------------------------------
Speed.#3.........: 776.1 kH/s (73.65ms) @ Accel:1024 Loops:63 Thr:32 Vec:1
Speed.#4.........: 759.9 kH/s (74.90ms) @ Accel:1024 Loops:63 Thr:32 Vec:1
Speed.#*.........: 1536.0 kH/s
---------------------------------------------
* Hash-Mode 11600 (7-Zip) [Iterations: 16384]
---------------------------------------------
Speed.#3.........: 838.1 kH/s (66.98ms) @ Accel:128 Loops:4096 Thr:64 Vec:1
Speed.#4.........: 815.2 kH/s (68.75ms) @ Accel:128 Loops:4096 Thr:64 Vec:1
Speed.#*.........: 1653.3 kH/s
------------------------------------------------
* Hash-Mode 12500 (RAR3-hp) [Iterations: 262144]
------------------------------------------------
Speed.#3.........: 121.6 kH/s (61.69ms) @ Accel:16 Loops:16384 Thr:256 Vec:1
Speed.#4.........: 119.5 kH/s (63.15ms) @ Accel:16 Loops:16384 Thr:256 Vec:1
Speed.#*.........: 241.1 kH/s
--------------------------------------------
* Hash-Mode 13000 (RAR5) [Iterations: 32799]
--------------------------------------------
Speed.#3.........: 83936 H/s (90.91ms) @ Accel:64 Loops:512 Thr:256 Vec:1
Speed.#4.........: 82551 H/s (92.36ms) @ Accel:64 Loops:512 Thr:256 Vec:1
Speed.#*.........: 166.5 kH/s
--------------------------------------------------------------------------------
* Hash-Mode 6211 (TrueCrypt RIPEMD160 + XTS 512 bit (legacy)) [Iterations: 1999]
--------------------------------------------------------------------------------
Speed.#3.........: 541.6 kH/s (55.63ms) @ Accel:512 Loops:128 Thr:32 Vec:1
Speed.#4.........: 522.5 kH/s (57.17ms) @ Accel:512 Loops:128 Thr:32 Vec:1
Speed.#*.........: 1064.1 kH/s
-----------------------------------------------------------------------------------
* Hash-Mode 13400 (KeePass 1 (AES/Twofish) and KeePass 2 (AES)) [Iterations: 24569]
-----------------------------------------------------------------------------------
Speed.#3.........: 71608 H/s (71.00ms) @ Accel:512 Loops:128 Thr:64 Vec:1
Speed.#4.........: 70965 H/s (71.62ms) @ Accel:512 Loops:128 Thr:64 Vec:1
Speed.#*.........: 142.6 kH/s
-------------------------------------------------------------------
* Hash-Mode 6800 (LastPass + LastPass sniffed) [Iterations: 100099]
-------------------------------------------------------------------
Speed.#3.........: 28154 H/s (88.79ms) @ Accel:64 Loops:512 Thr:256 Vec:1
Speed.#4.........: 27466 H/s (90.96ms) @ Accel:64 Loops:512 Thr:256 Vec:1
Speed.#*.........: 55620 H/s
--------------------------------------------------------------------
* Hash-Mode 11300 (Bitcoin/Litecoin wallet.dat) [Iterations: 200459]
--------------------------------------------------------------------
Speed.#3.........: 8167 H/s (76.23ms) @ Accel:64 Loops:256 Thr:256 Vec:1
Speed.#4.........: 8001 H/s (78.03ms) @ Accel:64 Loops:256 Thr:256 Vec:1
Speed.#*.........: 16168 H/s
Started: Sat Dec 9 21:11:57 2023
Stopped: Sat Dec 9 21:15:15 2023