Problem with AMD HIP
#6
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#
Reply


Messages In This Thread
Problem with AMD HIP - by djeeman - 10-18-2022, 08:52 PM
RE: Problem with AMD HIP - by marc1n - 10-19-2022, 11:07 AM
RE: Problem with AMD HIP - by djeeman - 10-20-2022, 08:01 PM
RE: Problem with AMD HIP - by marc1n - 10-20-2022, 08:16 PM
RE: Problem with AMD HIP - by djeeman - 10-25-2022, 12:19 AM
RE: Problem with AMD HIP - by antimatterizer - 01-09-2023, 06:03 PM