Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Fri, 4 Oct 2019 12:31:57 +0200
From: Bernd Roehmer <bernd.roehmer@....de>
To: john-users@...ts.openwall.com
Subject: OpenCl on mesa amd

Hi,

I just installed opencl-mesa and ocl-icd on Manjaro and as well as john  
1.9.0.jumbo1-2.

I tried to test rar password cracking with the built in test but I am 
running into error messages:


[me@...pc .john]$ sudo john -test -format=rar-opencl
Will run 12 OpenMP threads
Device 1@...pc: Radeon 550 Series (POLARIS12, DRM 3.32.0, 
5.2.11-1-MANJARO, LLVM 8.0.1)
Benchmarking: rar-opencl, RAR3 (length 5) [SHA1 OpenCL AES]... (12xOMP) 
Error creating binary cache file: Datei oder Verzeichnis nicht gefunden
[me-pc:04475] *** Process received signal ***
[me-pc:04475] Signal: Speicherzugriffsfehler (11)
[me-pc:04475] Signal code: Address not mapped (1)
[me-pc:04475] Failing at address: (nil)
[me-pc:04475] [ 0] /usr/lib/libpthread.so.0(+0x13d00)[0x7f894ad8bd00]
[me-pc:04475] *** End of error message ***
Speicherzugriffsfehler


I checked other opencl formats as well and they show the same error. 
clinfo says this:

[me@...pc ~]$ clinfo
Number of platforms                               1
   Platform Name                                   Clover
   Platform Vendor                                 Mesa
   Platform Version                                OpenCL 1.1 Mesa 19.1.5
   Platform Profile                                FULL_PROFILE
   Platform Extensions                             cl_khr_icd
   Platform Extensions function suffix             MESA

   Platform Name                                   Clover
Number of devices                                 1
   Device Name                                     Radeon 550 Series 
(POLARIS12, DRM 3.32.0, 5.2.11-1-MANJARO, LLVM 8.0.1)
   Device Vendor                                   AMD
   Device Vendor ID                                0x1002
   Device Version                                  OpenCL 1.1 Mesa 19.1.5
   Driver Version                                  19.1.5
   Device OpenCL C Version                         OpenCL C 1.1
   Device Type                                     GPU
   Device Profile                                  FULL_PROFILE
   Device Available                                Yes
   Compiler Available                              Yes
   Max compute units                               8
   Max clock frequency                             1203MHz
   Max work item dimensions                        3
   Max work item sizes                             256x256x256
   Max work group size                             256
   Preferred work group size multiple              64
   Preferred / native vector sizes
     char                                                16 / 16
     short                                                8 / 8
     int                                                  4 / 4
     long                                                 2 / 2
     half                                                 8 / 8        
(cl_khr_fp16)
     float                                                4 / 4
     double                                               2 / 2        
(cl_khr_fp64)
   Half-precision Floating-point support           (cl_khr_fp16)
     Denormals                                     No
     Infinity and NANs                             Yes
     Round to nearest                              Yes
     Round to zero                                 No
     Round to infinity                             No
     IEEE754-2008 fused multiply-add               No
     Support is emulated in software               No
   Single-precision Floating-point support         (core)
     Denormals                                     No
     Infinity and NANs                             Yes
     Round to nearest                              Yes
     Round to zero                                 No
     Round to infinity                             No
     IEEE754-2008 fused multiply-add               No
     Support is emulated in software               No
     Correctly-rounded divide and sqrt operations  No
   Double-precision Floating-point support         (cl_khr_fp64)
     Denormals                                     Yes
     Infinity and NANs                             Yes
     Round to nearest                              Yes
     Round to zero                                 Yes
     Round to infinity                             Yes
     IEEE754-2008 fused multiply-add               Yes
     Support is emulated in software               No
   Address bits                                    64, Little-Endian
   Global memory size                              3221225472 (3GiB)
   Error Correction support                        No
   Max memory allocation                           1717986918 (1.6GiB)
   Unified memory for Host and Device              No
   Minimum alignment for any data type             128 bytes
   Alignment of base address                       32768 bits (4096 bytes)
   Global Memory cache type                        None
   Image support                                   No
   Local memory type                               Local
   Local memory size                               32768 (32KiB)
   Max number of constant args                     16
   Max constant buffer size                        1717986918 (1.6GiB)
   Max size of kernel argument                     1024
   Queue properties
     Out-of-order execution                        No
     Profiling                                     Yes
   Profiling timer resolution                      0ns
   Execution capabilities
     Run OpenCL kernels                            Yes
     Run native kernels                            No
   Device Extensions cl_khr_byte_addressable_store 
cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics 
cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics 
cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_fp64 
cl_khr_fp16

NULL platform behavior
   clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...)  Clover
   clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...)   Success [MESA]
   clCreateContext(NULL, ...) [default]            Success [MESA]
   clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT)  Success (1)
     Platform Name                                 Clover
     Device Name                                   Radeon 550 Series 
(POLARIS12, DRM 3.32.0, 5.2.11-1-MANJARO, LLVM 8.0.1)
   clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU)  No devices found 
in platform
   clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU)  Success (1)
     Platform Name                                 Clover
     Device Name                                   Radeon 550 Series 
(POLARIS12, DRM 3.32.0, 5.2.11-1-MANJARO, LLVM 8.0.1)
   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)  Success (1)
     Platform Name                                 Clover
     Device Name                                   Radeon 550 Series 
(POLARIS12, DRM 3.32.0, 5.2.11-1-MANJARO, LLVM 8.0.1)

ICD loader properties
   ICD loader Name                                 OpenCL ICD Loader
   ICD loader Vendor                               OCL Icd free software
   ICD loader Version                              2.2.12
   ICD loader Profile                              OpenCL 2.2


Any ideas what I can do now? Running the test without opencl works 
without a problem.

I am curious why john opens 12 OpenMP processes, when it is supposed to 
use the gpu. My cpu has 12 cores.


kind regards,

Bernd


Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.