Hashcat fails to compile the HIP program.
#1
I have the newest ROCm version, and for some reason I get this output (hashcat -m 22000):

hashcat (v6.2.6) starting

HIP API (HIP 5.3.3)
===================
* Device #1: AMD Radeon RX 6400, 4080/4080 MB, 6MCU

OpenCL API (OpenCL 2.1 AMD-APP.dbg (3486.0)) - Platform #1 [Advanced Micro Devices, Inc.]
=========================================================================================
* Device #2: AMD Radeon RX 6400, skipped

Minimum password length supported by kernel: 8
Maximum password length supported by kernel: 63

Hashes: 1 digests; 1 unique digests, 1 unique salts
Bitmaps: 16 bits, 65536 entries, 0x0000ffff mask, 262144 bytes, 5/13 rotates
Rules: 1

Optimizers applied:
* Zero-Byte
* Single-Hash
* Single-Salt
* Slow-Hash-SIMD-LOOP

Watchdog: Temperature abort trigger set to 90c

hiprtcCompileProgram(): HIPRTC_ERROR_COMPILATION               

error: unknown argument: '-flegacy-pass-manager'
1 error generated when compiling for gfx1034.

* Device #1: Kernel /usr/share/hashcat/OpenCL/shared.cl build failed.

* Device #1: Kernel /usr/share/hashcat/OpenCL/shared.cl build failed.

Started: Mon Feb 20 17:21:20 2023
Stopped: Mon Feb 20 17:21:20 2023


As you can see, my GPU is being detected properly, but hashcat doesn't succeed in compiling the shader program. I looked online, and didn't find anything related to this exact issue. What can I do?
Reply
#2
Try with OpenCL, HIP is hit or miss with hashcat. Sometimes it works, sometimes it doesn't.

Just use -d 2 parameter in your command and see if it works.
Reply
#3
(02-20-2023, 05:40 PM)slyexe Wrote: Try with OpenCL, HIP is hit or miss with hashcat. Sometimes it works, sometimes it doesn't.

Just use -d 2 parameter in your command and see if it works.
This is what it outputs now (hashcat -m 22000 -d 2):

hashcat (v6.2.6) starting

HIP API (HIP 5.3.3)
===================
* Device #1: AMD Radeon RX 6400, skipped

OpenCL API (OpenCL 2.1 AMD-APP.dbg (3486.0)) - Platform #1 [Advanced Micro Devices, Inc.]
=========================================================================================
* Device #2: AMD Radeon RX 6400, 3968/4080 MB (3468 MB allocatable), 6MCU

Minimum password length supported by kernel: 8
Maximum password length supported by kernel: 63

Hashes: 1 digests; 1 unique digests, 1 unique salts
Bitmaps: 16 bits, 65536 entries, 0x0000ffff mask, 262144 bytes, 5/13 rotates
Rules: 1

Optimizers applied:
* Zero-Byte
* Single-Hash
* Single-Salt
* Slow-Hash-SIMD-LOOP

Watchdog: Temperature abort trigger set to 90c

Initializing backend runtime for device #2. Please be patient...LLVM ERROR: Cannot select: 0x558d907f9e18: i64 = FrameIndex<0>
In function: gpu_decompress
zsh: IOT instruction hashcat -m 22000 -d 2 ****.hc22000
Reply