Skip to content
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

Hashcat doesn't detect GPU on Linux (Debian) #2069

Closed
Aadniz opened this issue Jun 19, 2019 · 4 comments
Closed

Hashcat doesn't detect GPU on Linux (Debian) #2069

Aadniz opened this issue Jun 19, 2019 · 4 comments

Comments

@Aadniz
Copy link

Aadniz commented Jun 19, 2019

Hi.

I just installed Hashcat (v5.1.0) and it doesn't detect the GPU.

This is the output of ./hashcat64.bin -I

OpenCL Info:

Platform ID #1
  Vendor  : Intel(R) Corporation
  Name    : Intel(R) CPU Runtime for OpenCL(TM) Applications
  Version : OpenCL 2.1 LINUX

  Device ID #1
    Type           : CPU
    Vendor ID      : 8
    Vendor         : Intel(R) Corporation
    Name           : AMD Ryzen 5 1600 Six-Core Processor
    Version        : OpenCL 2.1 (Build 0)
    Processor(s)   : 12
    Clock          : 0
    Memory         : 8046/32187 MB allocatable
    OpenCL Version : OpenCL C 2.0 
    Driver Version : 18.1.0.0920

I'm using Nvidia GeForce GTX 1080 Ti with driver version 390.116
I would prefer to not mess too much with the Nvidia drivers, as I'm using 4 monitors where 2 of them are 165 hz

Does anyone knows what the issue is?
Do I need to install some Nvidia dependencies?

@philsmd
Copy link
Member

philsmd commented Jun 23, 2019

please try to run the "clinfo" command line tool. if that external command lists your GPUs, we should investigate this further.
My educated guess is that not even an external minimal tool like clinfo lists your GPUs and therefore it's a setup/installation problem (not a hashcat bug etc).

I think questions like this should be asked in the hashcat forum (https://hashcat.net/forum) instead, because this is more like a user question (not a crash/bug/feature request etc).

@Aadniz
Copy link
Author

Aadniz commented Jun 23, 2019

please try to run the "clinfo" command line tool. if that external command lists your GPUs, we should investigate this further.
My educated guess is that not even an external minimal tool like clinfo lists your GPUs and therefore it's a setup/installation problem (not a hashcat bug etc).

I think questions like this should be asked in the hashcat forum (https://hashcat.net/forum) instead, because this is more like a user question (not a crash/bug/feature request etc).

Alright, so I can't find the GPU with the "clinfo" command and believe the issue is not related to hashcat.

Here is the output:

Number of platforms                               1
  Platform Name                                   Intel(R) CPU Runtime for OpenCL(TM) Applications
  Platform Vendor                                 Intel(R) Corporation
  Platform Version                                OpenCL 2.1 LINUX
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             cl_khr_icd 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_byte_addressable_store cl_khr_depth_images cl_khr_3d_image_writes cl_intel_exec_by_local_thread cl_khr_spir cl_khr_fp64 cl_khr_image2d_from_buffer cl_intel_vec_len_hint 
  Platform Host timer resolution                  1ns
  Platform Extensions function suffix             INTEL

  Platform Name                                   Intel(R) CPU Runtime for OpenCL(TM) Applications
Number of devices                                 1
  Device Name                                     AMD Ryzen 5 1600 Six-Core Processor            
  Device Vendor                                   Intel(R) Corporation
  Device Vendor ID                                0x8086
  Device Version                                  OpenCL 2.1 (Build 0)
  Driver Version                                  18.1.0.0920
  Device OpenCL C Version                         OpenCL C 2.0 
  Device Type                                     CPU
  Device Profile                                  FULL_PROFILE
  Max compute units                               12
  Max clock frequency                             0MHz
  Device Partition                                (core)
    Max number of sub-devices                     12
    Supported partition types                     by counts, equally, by names (Intel)
  Max work item dimensions                        3
  Max work item sizes                             8192x8192x8192
  Max work group size                             8192
  Preferred work group size multiple              128
  Max sub-groups per work group                   1
  Preferred / native vector sizes                 
    char                                                 1 / 32      
    short                                                1 / 16      
    int                                                  1 / 8       
    long                                                 1 / 4       
    half                                                 0 / 0        (n/a)
    float                                                1 / 8       
    double                                               1 / 4        (cl_khr_fp64)
  Half-precision Floating-point support           (n/a)
  Single-precision Floating-point support         (core)
    Denormals                                     Yes
    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
    Correctly-rounded divide and sqrt operations  No
  Address bits                                    64, Little-Endian
  Global memory size                              33750888448 (31.43GiB)
  Error Correction support                        No
  Max memory allocation                           8437722112 (7.858GiB)
  Unified memory for Host and Device              Yes
  Shared Virtual Memory (SVM) capabilities        (core)
    Coarse-grained buffer sharing                 Yes
    Fine-grained buffer sharing                   Yes
    Fine-grained system sharing                   Yes
    Atomics                                       Yes
  Minimum alignment for any data type             128 bytes
  Alignment of base address                       1024 bits (128 bytes)
  Preferred alignment for atomics                 
    SVM                                           64 bytes
    Global                                        64 bytes
    Local                                         0 bytes
  Max size for global variable                    65536 (64KiB)
  Preferred total size of global vars             65536 (64KiB)
  Global Memory cache type                        Read/Write
  Global Memory cache size                        524288
  Global Memory cache line                        64 bytes
  Image support                                   Yes
    Max number of samplers per kernel             480
    Max size for 1D images from buffer            527357632 pixels
    Max 1D or 2D image array size                 2048 images
    Base address alignment for 2D image buffers   64 bytes
    Pitch alignment for 2D image buffers          64 bytes
    Max 2D image size                             16384x16384 pixels
    Max 3D image size                             2048x2048x2048 pixels
    Max number of read image args                 480
    Max number of write image args                480
    Max number of read/write image args           480
  Max number of pipe args                         16
  Max active pipe reservations                    21845
  Max pipe packet size                            1024
  Local memory type                               Global
  Local memory size                               32768 (32KiB)
  Max constant buffer size                        131072 (128KiB)
  Max number of constant args                     480
  Max size of kernel argument                     3840 (3.75KiB)
  Queue properties (on host)                      
    Out-of-order execution                        Yes
    Profiling                                     Yes
    Local thread execution (Intel)                Yes
  Queue properties (on device)                    
    Out-of-order execution                        Yes
    Profiling                                     Yes
    Preferred size                                4294967295 (4GiB)
    Max size                                      4294967295 (4GiB)
  Max queues on device                            4294967295
  Max events on device                            4294967295
  Prefer user sync for interop                    No
  Profiling timer resolution                      1ns
  Execution capabilities                          
    Run OpenCL kernels                            Yes
    Run native kernels                            Yes
    Sub-group independent forward progress        No
    IL version                                    SPIR-V_1.0
    SPIR versions                                 1.2
  printf() buffer size                            1048576 (1024KiB)
  Built-in kernels                                
  Device Available                                Yes
  Compiler Available                              Yes
  Linker Available                                Yes
  Device Extensions                               cl_khr_icd 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_byte_addressable_store cl_khr_depth_images cl_khr_3d_image_writes cl_intel_exec_by_local_thread cl_khr_spir cl_khr_fp64 cl_khr_image2d_from_buffer cl_intel_vec_len_hint 

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]              Success [INTEL]
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU)  No platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU)  No platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR)  No platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM)  No platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL)  No platform

It would be great if you would help me out here

@philsmd
Copy link
Member

philsmd commented Jun 23, 2019

I would suggest to start from here: https://hashcat.net/faq/wrongdriver
then you should also try to run "hashcat -b" and see if the device, driver and OpenCL ICD loader are detected/installed correctly.

I think we can/should close this issue, because there are many similar solved questions on the forum (and even closed issues on this github issue tracker).

A 1080 ti should definitely work, but there could be many reasons why it's not working yet (including xorg configuration problems, additional GPU on motherboard and dedicated GPU is disabled in BIOS/UEFI, driver install problems, mesa/pocl problems, ...)

@jsteube jsteube closed this as completed Jul 16, 2019
@Aadniz
Copy link
Author

Aadniz commented Aug 4, 2019

Fixed by updating Nvidia driver.

When I posted this, I used an old Nvidia driver NVIDIA 390.116
Now I have NVIDIA 430.40 and it works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants