Linux Error cuInit(): unknown error
#1
Hi,

My PC Specification : GPU: 1660Super, CPU:Ryzen 5 3600,

I want to use this machine for cracking with hashcat

I installed The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali) Linux and updated / upgraded everything

then installed NVIDIA Drivers and CUDA Toolkit, then Hashcat



The problem is when I run hashcat It can't see the Cuda toolkit or the GPU

I searched for the error and any solutions but no luck.

I tried https://hashcat.net/faq/wrongdriver

I Read all FAQ section, Tried every solution there, Uninstall install drivers cuda ... etc



In the home Page it is said Required "NVIDIA GPUs require "NVIDIA Driver" (440.64 or later) and "CUDA Toolkit" (9.0 or later)"



By running

Code:
root@KPC:/# nvcc --version



##Result is :


Code:
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2019 NVIDIA Corporation
Built on Wed_Oct_23_19:24:38_PDT_2019
Cuda compilation tools, release 10.2, V10.2.89




By running

Code:
root@KPC:/# nvidia-smi

##Result is :


Code:
Tue Nov 10 06:51:51 2020     
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 450.80.02    Driver Version: 450.80.02    CUDA Version: 11.0    |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|        Memory-Usage | GPU-Util  Compute M. |
|                              |                      |              MIG M. |
|===============================+======================+======================|
|  0  GeForce GTX 166...  Off  | 00000000:07:00.0  On |                  N/A |
|  0%  38C    P8    13W / 125W |    195MiB /  5944MiB |      4%      Default |
|                              |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                             
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU  GI  CI   PID  Type  Process name  GPU Memory ID  ID   Usage      |
|=======================================================|
|    0  N/A  N/A      765      G  /usr/lib/xorg/Xorg                190MiB |
|    0  N/A  N/A      1043      G  xfwm4                              3MiB |
+-----------------------------------------------------------------------------+


I am sorry for bad format



but It now show that I am in the requirements!

Code:
| NVIDIA-SMI 450.80.02    Driver Version: 450.80.02    CUDA Version: 11.0    |



The problem is when I run

Code:
root@KPC:/# hashcat -I



##Result:


Code:
hashcat (v6.1.1) starting...

cuInit(): unknown error

OpenCL Info:
============

OpenCL Platform ID #1
  Vendor..: The pocl project
  Name....: Portable Computing Language
  Version.: OpenCL 1.2 pocl 1.5, None+Asserts, LLVM 9.0.1, RELOC, SLEEF, DISTRO, POCL_DEBUG

  Backend Device ID #1
    Type...........: CPU
    Vendor.ID......: 1
    Vendor.........: AuthenticAMD
    Name...........: pthread-AMD Ryzen 5 3600 6-Core Processor
    Version........: OpenCL 1.2 pocl HSTR: pthread-x86_64-pc-linux-gnu-znver1
    Processor(s)...: 12
    Clock..........: 3600
    Memory.Total...: 13976 MB (limited to 4096 MB allocatable in one block)
    Memory.Free....: 13912 MB
    OpenCL.Version.: OpenCL C 1.2 pocl
    Driver.Version.: 1.5

cuInit(): unknown error

I hope anyone can help cause I did every solution on internet to solve but no luck
Reply


Messages In This Thread
Linux Error cuInit(): unknown error - by l_kareem_l - 11-10-2020, 07:15 AM
RE: Linux Error cuInit(): unknown error - by grok - 11-15-2020, 03:17 AM
RE: Linux Error cuInit(): unknown error - by grok - 11-15-2020, 03:19 AM
RE: Linux Error cuInit(): unknown error - by n0ss - 11-15-2020, 11:13 AM