hashcat Forum
clGetDeviceIDs() -1 while running oclHashcat - Printable Version

+- hashcat Forum (https://hashcat.net/forum)
+-- Forum: Deprecated; Previous versions (https://hashcat.net/forum/forum-29.html)
+--- Forum: General Help (https://hashcat.net/forum/forum-8.html)
+--- Thread: clGetDeviceIDs() -1 while running oclHashcat (/thread-2695.html)

Pages: 1 2


clGetDeviceIDs() -1 while running oclHashcat - bliss - 10-08-2013

Hi, I'm currently running Ubuntu Server 12.04.3 and am trying to get oclHashcat to work. I followed this guide: http://hashcat.net/wiki/doku.php?id=linux_server_howto

I'm using the Catalyst 13.8 beta driver and am using one HD 7990. I'm SSHing to the remote machine from an Ubuntu VM.

Running this command: cat example.dict | ./oclHashcat-plus64.bin -m 400 example400.hash

returns this error:
No protocol specified
No protocol specified
ERROR: clGetDeviceIDs() -1

If anyone could help it would be much appreciated. Disclaimer - my Linux skills are questionable and hashcat experience nonexistent.


RE: clGetDeviceIDs() -1 while running oclHashcat - epixoip - 10-09-2013

please post the output of clinfo


RE: clGetDeviceIDs() -1 while running oclHashcat - bliss - 10-09-2013

No protocol specified
No protocol specified
Number of platforms: 1
Platform Profile: FULL_PROFILE
Platform Version: OpenCL 1.2 AMD-APP (1124.2)
Platform Name: AMD Accelerated Parallel Processing
Platform Vendor: Advanced Micro Devices, Inc.
Platform Extensions: cl_khr_icd cl_amd_event_callback cl_amd_offline_devices


Platform Name: AMD Accelerated Parallel Processing
Number of devices: 1
Device Type: CL_DEVICE_TYPE_CPU
Device ID: 4098
Board name:
Max compute units: 8
Max work items dimensions: 3
Max work items[0]: 1024
Max work items[1]: 1024
Max work items[2]: 1024
Max work group size: 1024
Preferred vector width char: 16
Preferred vector width short: 8
Preferred vector width int: 4
Preferred vector width long: 2
Preferred vector width float: 8
Preferred vector width double: 4
Native vector width char: 16
Native vector width short: 8
Native vector width int: 4
Native vector width long: 2
Native vector width float: 8
Native vector width double: 4
Max clock frequency: 3601Mhz
Address bits: 64
Max memory allocation: 2147483648
Image support: Yes
Max number of images read arguments: 128
Max number of images write arguments: 8
Max image 2D width: 8192
Max image 2D height: 8192
Max image 3D width: 2048
Max image 3D height: 2048
Max image 3D depth: 2048
Max samplers within kernel: 16
Max size of kernel argument: 4096
Alignment (bits) of base address: 1024
Minimum alignment (bytes) for any datatype: 128
Single precision floating point capability
Denorms: Yes
Quiet NaNs: Yes
Round to nearest even: Yes
Round to zero: Yes
Round to +ve and infinity: Yes
IEEE754-2008 fused multiply-add: Yes
Cache type: Read/Write
Cache line size: 64
Cache size: 32768
Global memory size: 8311291904
Constant buffer size: 65536
Max number of constant args: 8
Local memory type: Global
Local memory size: 32768
Kernel Preferred work group size multiple: 1
Error correction support: 0
Unified memory for Host and Device: 1
Profiling timer resolution: 1
Device endianess: Little
Available: Yes
Compiler available: Yes
Execution capabilities:
Execute OpenCL kernels: Yes
Execute native function: Yes
Queue properties:
Out-of-Order: No
Profiling : Yes
Platform ID: 0x00007fe7c9c90520
Name: Intel(R) Core(TM) i7-3820 CPU @ 3.60GHz
Vendor: GenuineIntel
Device OpenCL C version: OpenCL C 1.2
Driver version: 1124.2 (sse2,avx)
Profile: FULL_PROFILE
Version: OpenCL 1.2 AMD-APP (1124.2)
Extensions: cl_khr_fp64 cl_amd_fp64 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_3d_image_writes cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_vec3 cl_amd_printf cl_amd_media_ops cl_amd_media_ops2 cl_amd_popcnt


RE: clGetDeviceIDs() -1 while running oclHashcat - Kuci - 10-09-2013

Your GPU is not recognized. Post output of "lspci | grep VGA"


RE: clGetDeviceIDs() -1 while running oclHashcat - bliss - 10-09-2013

lspci | grep VGA
03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Malta [Radeon HD 7990]


RE: clGetDeviceIDs() -1 while running oclHashcat - epixoip - 10-10-2013

either driver is not configured properly, or you do not have xauthority. walk back through the guide.


RE: clGetDeviceIDs() -1 while running oclHashcat - Kuci - 10-11-2013

Check if your X is running when you attempt to run oclHashcat. Also, make sure you are logged in in your desktop environment if you use any.


RE: clGetDeviceIDs() -1 while running oclHashcat - timonline86 - 08-21-2015

I am facing the same issue.

Here is the sequenced I followed:

1) Fresh The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali) Linux 2.0 Sana installation
2) Install oclhashcat
         # apt-get install oclhashcat
3) Tried running oclhashcat
         # oclhashcat -b

Which resulted in:

./oclHashcat.bin: error while loading shared libraries: libOpenCL.so.1: cannot open shared object file: No such file or directory


4) I then ran a search for the opencl libraries, got three


  [i]       # apt-cache search libopencl[/i]
         ocl-icd-libopencl1 - Generic OpenCL ICD Loader
         amd-libopencl1 - AMD OpenCL ICD Loader library
         nvidia-libopencl1 - NVIDIA OpenCL ICD Loader library

Since I have the R9 295X2 Graphics card, I installed the amd-libopencl1 which also installed amd-opencl-icd

5) Tried re-running the command in step 3, the error regarding the libOpenCL.so.1 went away but I got a new one

         # oclHashcat -b
         oclHashcat v1.37 starting in benchmark-mode...

         ERROR: clGetDeviceIDs() -1

Here is some info that might help troubleshoot my issue

         [i]# dpkg -l | grep oclhashcat[/i]

         ii  oclhashcat                             1.36-0kali0                          amd64        GPU password cracker

Tried downloading the new 1.37 version from this website, same issue

         ~/Downloads# cd oclHashcat-1.37
         ~/Downloads/oclHashcat-1.37# ./oclHashcat64.bin -b
         oclHashcat v1.37 starting in benchmark-mode...

         ERROR: clGetDeviceIDs() -1


# echo $DISPLAY
:0



# clinfo
         Number of platforms:                 1
           Platform Profile:                 FULL_PROFILE
           Platform Version:                 OpenCL 2.0 AMD-APP (1642.5)
           Platform Name:                 AMD Accelerated Parallel Processing
           Platform Vendor:                 Advanced Micro Devices, Inc.
           Platform Extensions:                 cl_khr_icd cl_amd_event_callback cl_amd_offline_devices


           Platform Name:                 AMD Accelerated Parallel Processing
         Number of devices:                 1
           Device Type:                     CL_DEVICE_TYPE_CPU
           Vendor ID:                     1002h
           Board name:                    
           Max compute units:                 8
           Max work items dimensions:             3
             Max work items[0]:                 1024
             Max work items[1]:                 1024
             Max work items[2]:                 1024
           Max work group size:                 1024
           Preferred vector width char:             16
           Preferred vector width short:             8
           Preferred vector width int:             4
           Preferred vector width long:             2
           Preferred vector width float:             8
           Preferred vector width double:         4
           Native vector width char:             16
           Native vector width short:             8
           Native vector width int:             4
           Native vector width long:             2
           Native vector width float:             8
           Native vector width double:             4
           Max clock frequency:                 4716Mhz
           Address bits:                     64
           Max memory allocation:             8409117696
           Image support:                 Yes
           Max number of images read arguments:         128
           Max number of images write arguments:         64
           Max image 2D width:                 8192
           Max image 2D height:                 8192
           Max image 3D width:                 2048
           Max image 3D height:                 2048
           Max image 3D depth:                 2048
           Max samplers within kernel:             16
           Max size of kernel argument:             4096
           Alignment (bits) of base address:         1024
           Minimum alignment (bytes) for any datatype:     128
           Single precision floating point capability
             Denorms:                     Yes
             Quiet NaNs:                     Yes
             Round to nearest even:             Yes
             Round to zero:                 Yes
             Round to +ve and infinity:             Yes
             IEEE754-2008 fused multiply-add:         Yes
           Cache type:                     Read/Write
           Cache line size:                 64
           Cache size:                     16384
           Global memory size:                 33636470784
           Constant buffer size:                 65536
           Max number of constant args:             8
           Local memory type:                 Global
           Local memory size:                 32768
           Max pipe arguments:                 16
           Max pipe active reservations:             16
           Max pipe packet size:                 4114150400
           Max global variable size:             1879048192
           Max global variable preferred total size:     1879048192
           Max read/write image args:             64
           Max on device events:                 0
           Queue on device max size:             0
           Max on device queues:                 0
           Queue on device preferred size:         0
           SVM capabilities:                
             Coarse grain buffer:             Yes
             Fine grain buffer:                 Yes
             Fine grain system:                 Yes
             Atomics:                     Yes
           Preferred platform atomic alignment:         0
           Preferred global atomic alignment:         0
           Preferred local atomic alignment:         0
           Kernel Preferred work group size multiple:     1
           Error correction support:             0
           Unified memory for Host and Device:         1
           Profiling timer resolution:             1
           Device endianess:                 Little
           Available:                     Yes
           Compiler available:                 Yes
           Execution capabilities:                
             Execute OpenCL kernels:             Yes
             Execute native function:             Yes
           Queue on Host properties:                
             Out-of-Order:                 No
             Profiling :                     Yes
           Queue on Device properties:                
             Out-of-Order:                 No
             Profiling :                     No
           Platform ID:                     0x7fb4b1cfcfd0
           Name:                         AMD FX(tm)-9590 Eight-Core Processor
           Vendor:                     AuthenticAMD
           Device OpenCL C version:             OpenCL C 1.2
           Driver version:                 1642.5 (sse2,avx,fma4)
           Profile:                     FULL_PROFILE
           Version:                     OpenCL 1.2 AMD-APP (1642.5)
           Extensions:                     cl_khr_fp64 cl_amd_fp64 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_3d_image_writes cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_vec3 cl_amd_printf cl_amd_media_ops cl_amd_media_ops2 cl_amd_popcnt cl_khr_spir cl_khr_gl_event


[i]         # lspci | grep VGA[/i]
         01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Tahiti PRO [Radeon HD 7950/8950 OEM / R9 280]
         0a:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Vesuvius [Radeon R9 295X2]


One thing to note is that I haven't installed the AMD SDK, please let me know if that is a requirement.

P.S. The crazy thing is that I had it working with the exact same hardware, but the OS got corrupted (for a different unrelated reason), and when I installed a fresh version of the OS it stopped working. I am sure there is a minor step or two that I may have missed.

Any assistance in this issue will be appreciated.

Thanks,
Tim Rashed


RE: clGetDeviceIDs() -1 while running oclHashcat - mrleau - 08-21-2015

did you install the amd driver? clinfo is only listing your cpu, your gpu should appear.


RE: clGetDeviceIDs() -1 while running oclHashcat - timonline86 - 08-23-2015

(08-21-2015, 04:26 PM)mrleau Wrote: did you install the amd driver? clinfo is only listing your cpu, your gpu should appear.

Thanks for responding. When I install the AMD driver, it tells me that I have an incompatible or unsupported driver and I need to run it with the --force option which is why I installed I the amd-libopencl1 and amd-opencl-icd
packages via apt-get.

As I have previously stated, I haven't installed the AMD SDK, should I?