You are not logged in.

#1 2023-11-14 23:34:15

joaocandre
Member
Registered: 2013-02-23
Posts: 157

How to properly configure OpenCL runtime with old AMD gpu?

I'm trying to get my old AMD HD7850 (Pitcairn / S. Islands) graphics card to work with hashcat, but I've having trouble properly configuring the OpenCL backend.

Since it's a 10+ year old device, none of the ROCm AMD runtime binaries work, so I'm left with the implementations provided by mesa; clover seems to work (detected with clinfo), but hashcat complains

* Device #1: Unstable OpenCL driver detected!

No devices found/left.

I can pass the --force to ignore the error and continue, but the computer will eventually crash.
Alternatively, with opencl-rusticl-mesaclinfo does not identify any compatible device, although it is should (allegedly):

Number of platforms                               1
  Platform Name                                   rusticl
  Platform Vendor                                 Mesa/X.org
  Platform Version                                OpenCL 3.0 
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             cl_khr_byte_addressable_store cl_khr_create_command_queue cl_khr_extended_versioning cl_khr_icd cl_khr_il_program cl_khr_spirv_no_integer_wrap_decoration
  Platform Extensions with Version                cl_khr_byte_addressable_store                                    0x400000 (1.0.0)
                                                  cl_khr_create_command_queue                                      0x400000 (1.0.0)
                                                  cl_khr_extended_versioning                                       0x400000 (1.0.0)
                                                  cl_khr_icd                                                       0x400000 (1.0.0)
                                                  cl_khr_il_program                                                0x400000 (1.0.0)
                                                  cl_khr_spirv_no_integer_wrap_decoration                          0x400000 (1.0.0)
  Platform Numeric Version                        0xc00000 (3.0.0)
  Platform Extensions function suffix             MESA
  Platform Host timer resolution                  1ns

  Platform Name                                   rusticl
Number of devices                                 0

NULL platform behavior
  clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...)  No platform
  clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...)   No platform
  clCreateContext(NULL, ...) [default]            No platform
  clCreateContext(NULL, ...) [other]              
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL)  No devices found in platform

ICD loader properties
  ICD loader Name                                 Khronos OpenCL ICD Loaderns
  ICD loader Vendor                               Khronos Groupns
  ICD loader Version                              3.0.5ns
  ICD loader Profile                              OpenCL 3.0ns

even when calling export RUSTICL_ENABLE=amdgpu beforehand.

Anyone with a similar setup/experience that can provide some feedback here? Thanks in advance.

Offline

#2 2023-11-15 11:36:26

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,069

Re: How to properly configure OpenCL runtime with old AMD gpu?

rusticl expects to be given the mesa driver it should use, not the kernel module.
https://docs.mesa3d.org/envvars.html#ru … -variables for details.

I'm not sure if your card will work with rusticl, but we can verify that.

Please post output of

$ RUSTICL_ENABLE=radeonsi clinfo --list

Last edited by Lone_Wolf (2023-11-15 11:37:32)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2023-11-16 16:23:19

joaocandre
Member
Registered: 2013-02-23
Posts: 157

Re: How to properly configure OpenCL runtime with old AMD gpu?

Indeed that was the issue. For some reason I misread that argument as radeon and though it was referring to the driver in use.
clinfo is now able to identify the GPU, and hashcat no longer complains.

Platform #0: rusticl
 `-- Device #0: AMD Radeon HD 7800 Series (pitcairn, LLVM 16.0.6, DRM 3.54, 6.6.1-arch1-1)

Offline

#4 2023-11-17 10:58:02

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,069

Re: How to properly configure OpenCL runtime with old AMD gpu?

Great, please prepend [Solved] to the thread ttitle.
(edit first post, you may need to shorten the title ).


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB