New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hiprtcCompileProgram(): HIPRTC_ERROR_COMPILATION #3918
Comments
I have used other Ubuntu Server 22.04.3 LTS setup and it worked now.
Kernel
rocminfo
Benchmark
|
@Demontager if you look carefully in your first example the OpenCL backend was skipped, in the second the HIP backend. This issue is valid for the HIP backend failing to work. The "problem" is __ockl_get_group_id and __ockl_get_group_size functions are defined in ockl.bc from the amdgcn device lib. Although maybe the problem is that ockl is now needed? The below patch fixes hashcat by linking that library.
On the other hand, why this is needed now, I'm not sure. I opened an issue in ROCm-Device-Libs, but they saw this as a hashcat issue. |
Also encountered this on ROCm 6.0.0, @sjnewbury could you please make a PR for this? |
I am using 6.0.2 on Linux and everything is working perfectly |
Upgraded to ROCm 6.0.2 and this issue is fixed. Thanks for the info. |
I have a similar issue. hiprtcCompileProgram(): HIPRTC_ERROR_COMPILATION
lld: error: undefined hidden symbol: __ockl_get_group_id
>>> referenced by /home/mathias/.local/share/hashcat/comgr-22df78/input/LLVMBitcode.bc.o:(gpu_decompress)
>>> referenced by /home/mathias/.local/share/hashcat/comgr-22df78/input/LLVMBitcode.bc.o:(gpu_decompress)
>>> referenced by /home/mathias/.local/share/hashcat/comgr-22df78/input/LLVMBitcode.bc.o:(gpu_memset)
>>> referenced 7 more times
lld: error: undefined hidden symbol: __ockl_get_local_size
>>> referenced by /home/mathias/.local/share/hashcat/comgr-22df78/input/LLVMBitcode.bc.o:(gpu_decompress)
>>> referenced by /home/mathias/.local/share/hashcat/comgr-22df78/input/LLVMBitcode.bc.o:(gpu_decompress)
>>> referenced by /home/mathias/.local/share/hashcat/comgr-22df78/input/LLVMBitcode.bc.o:(gpu_memset)
>>> referenced 7 more times
lld: error: undefined hidden symbol: __ockl_get_local_id
>>> referenced by /home/mathias/.local/share/hashcat/comgr-22df78/input/LLVMBitcode.bc.o:(gpu_decompress)
>>> referenced by /home/mathias/.local/share/hashcat/comgr-22df78/input/LLVMBitcode.bc.o:(gpu_decompress)
>>> referenced by /home/mathias/.local/share/hashcat/comgr-22df78/input/LLVMBitcode.bc.o:(gpu_memset)
>>> referenced 7 more times
* Device #1: Kernel /usr/local/share/hashcat/OpenCL/shared.cl build failed.
* Device #1: Kernel /usr/local/share/hashcat/OpenCL/shared.cl build failed.
System info Linux mathias-ubuntu-desktop-pc 6.5.0-26-generic #26~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Mar 12 10:22:43 UTC 2 x86_64 x86_64 x86_64 GNU/Linux No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.4 LTS
Release: 22.04
Codename: jammy ===================================== ROCm System Management Interface =====================================
=============================================== Concise Info ===============================================
Device [Model : Revision] Temp Power Partitions SCLK MCLK Fan Perf PwrCap VRAM% GPU%
Name (20 chars) (Edge) (Avg) (Mem, Compute)
============================================================================================================
0 [0x440e : 0xc0] 39.0°C 14.0W N/A, N/A 500Mhz 96Mhz 0% auto 289.0W 3% 2%
Navi 21 [Radeon RX 6
============================================================================================================
=========================================== End of ROCm SMI Log ============================================ amdgpu-dkms version: 1:6.3.6.60002-1718217.22.04 rocm version: 6.0.2.60002-115~22.04 hashcat version: hashcat (v6.2.6-850-gfafb277e0) hashcat (v6.2.6-850-gfafb277e0) starting in backend information mode
The device #2 specifically listed was skipped because it is an alias of device #1
HIP Info:
=========
HIP.Version.: 6.0.32831
Backend Device ID #1 (Alias: #2)
Name...........: AMD Radeon RX 6900 XT
Processor(s)...: 40
Clock..........: 2660
Memory.Total...: 16368 MB
Memory.Free....: 16312 MB
Local.Memory...: 64 KB
PCI.Addr.BDFe..: 0000:03:00.0
OpenCL Info:
============
OpenCL Platform ID #1
Vendor..: Advanced Micro Devices, Inc.
Name....: AMD Accelerated Parallel Processing
Version.: OpenCL 2.1 AMD-APP (3602.0)
Backend Device ID #2 (Alias: #1)
Type...........: GPU
Vendor.ID......: 1
Vendor.........: Advanced Micro Devices, Inc.
Name...........: AMD Radeon RX 6900 XT
Version........: OpenCL 2.0
Processor(s)...: 40
Clock..........: 2660
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.: 3602.0 (HSA1.1,LC)
PCI.Addr.BDF...: 03:00.0 |
Hi, i have tried to run currently the latest hashcat (v6.2.6-846-g4d412c8e0) on Ubuntu 20.04 and 22.04 and faced the same problem to run benchmarks.
To Reproduce
wget https://repo.radeon.com/amdgpu-install/5.7.2/ubuntu/focal/amdgpu-install_5.7.50702-1_all.deb
sudo dpkg -i amdgpu-install_5.7.50702-1_all.deb
sudo amdgpu-install --opencl=rocr
Hardware/Compute device (please complete the following information):
AMD Radeon RX 6800
Hashcat version (please complete the following information):
Diagnostic output compute devices:
The text was updated successfully, but these errors were encountered: