GT 730 cuInit(): unknown error
#1
hi,
I buy a graphic card GT 730 so i decided to install NVIDIA GT 730 Drivers on my The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali) linux.
i followed the steps from https://www.The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali).org/docs/general-use/install-nvidia-drivers-on-The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali)-linux/
everything was ok but when i tried to execute hashcat i didn't get NVIDIA device instead i receive : cuInit(): unknown error

Code:
root@The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali):~# hashcat -I
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......: 128
    Vendor.........: GenuineIntel
    Name...........: pthread-Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz
    Version........: OpenCL 1.2 pocl HSTR: pthread-x86_64-pc-linux-gnu-haswell
    Processor(s)...: 4
    Clock..........: 3700
    Memory.Total...: 9878 MB (limited to 4096 MB allocatable in one block)
    Memory.Free....: 9814 MB
    OpenCL.Version.: OpenCL C 1.2 pocl
    Driver.Version.: 1.5


what i noticed is after executing the following command :

Code:
root@The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali):~# nvidia-smi -i 0 -q

==============NVSMI LOG==============

Timestamp                                : Thu Nov 26 07:50:32 2020
Driver Version                            : 450.80.02
CUDA Version                              : 11.0

Attached GPUs                            : 1
GPU 00000000:01:00.0
    Product Name                          : GeForce GT 730
    Product Brand                        : GeForce
    Display Mode                          : N/A
    Display Active                        : N/A
    Persistence Mode                      : Disabled
    MIG Mode
...


is that display mode and display active are not activated as The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali) Linux document show..
posting here was my last chance i hope i could find a solution.
regards.
Reply
#2
same answer as in 99% of all other k.a.l.i related threads: remove pocl.
Reply
#3
(11-26-2020, 06:24 PM)undeath Wrote: same answer as in 99% of all other k.a.l.i related threads: remove pocl.

thank you for answering i will check it right now
Reply
#4
cuInit(): unknown error

PRETTY_NAME="The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali) GNU/Linux Rolling"
NAME="The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali) GNU/Linux"
ID=The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali)
VERSION="2020.4"
VERSION_ID="2020.4"
VERSION_CODENAME="The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali)-rolling"
ID_LIKE=debian
ANSI_COLOR="1;31"
HOME_URL="https://www.The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali).org/"
SUPPORT_URL="https://forums.The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali).org/"
BUG_REPORT_URL="https://bugs.The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali).org/"

After ungrading The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali) linux 2020.4 last night 12/15.2020 the cuInit(): unknown error
is fixed. Hashcat uses GPU now

hashcat (v6.1.1) starting...

CUDA Info:
==========

CUDA.Version.: 11.1

Backend Device ID #1 (Alias: #2)
  Name...........: GeForce GTX 970
  Processor(s)...: 13
  Clock..........: 1177
  Memory.Total...: 4042 MB
  Memory.Free....: 3794 MB

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

OpenCL Platform ID #1
  Vendor..: NVIDIA Corporation
  Name....: NVIDIA CUDA
  Version.: OpenCL 1.2 CUDA 11.1.114

  Backend Device ID #2 (Alias: #1)
    Type...........: GPU
    Vendor.ID......: 32
    Vendor.........: NVIDIA Corporation
    Name...........: GeForce GTX 970
    Version........: OpenCL 1.2 CUDA
    Processor(s)...: 13
    Clock..........: 1177
    Memory.Total...: 4042 MB (limited to 1010 MB allocatable in one block)
    Memory.Free....: 3776 MB
    OpenCL.Version.: OpenCL C 1.2
    Driver.Version.: 455.45.01

OpenCL Platform ID #2
  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 #3
    Type...........: CPU
    Vendor.ID......: 128
    Vendor.........: GenuineIntel
    Name...........: pthread-Intel(R) Core(TM) i7-4820K CPU @ 3.70GHz
    Version........: OpenCL 1.2 pocl HSTR: pthread-x86_64-pc-linux-gnu-ivybridge
    Processor(s)...: 8
    Clock..........: 3900
    Memory.Total...: 13908 MB (limited to 4096 MB allocatable in one block)
    Memory.Free....: 13844 MB
    OpenCL.Version.: OpenCL C 1.2 pocl
    Driver.Version.: 1.5

hashcat -O -a 3 -m 0 hashes.txt ?u?l?l?l?l?d?l?d                    1 ⨯
hashcat (v6.1.1) starting...

* Device #1: WARNING! Kernel exec timeout is not disabled.
            This may cause "CL_OUT_OF_RESOURCES" or related errors.
            To disable the timeout, see: https://hashcat.net/q/timeoutpatch
* Device #2: WARNING! Kernel exec timeout is not disabled.
            This may cause "CL_OUT_OF_RESOURCES" or related errors.
            To disable the timeout, see: https://hashcat.net/q/timeoutpatch
CUDA API (CUDA 11.1)
====================
* Device #1: GeForce GTX 970, 3786/4042 MB, 13MCU

OpenCL API (OpenCL 1.2 CUDA 11.1.114) - Platform #1 [NVIDIA Corporation]
========================================================================
* Device #2: GeForce GTX 970, skipped

OpenCL API (OpenCL 1.2 pocl 1.5, None+Asserts, LLVM 9.0.1, RELOC, SLEEF, DISTRO, POCL_DEBUG) - Platform #2 [The pocl project]
=============================================================================================================================
* Device #3: pthread-Intel(R) Core(TM) i7-4820K CPU @ 3.70GHz, skipped

Minimum password length supported by kernel: 0
Maximum password length supported by kernel: 55

Hashes: 1 digests; 1 unique digests, 1 unique salts
Bitmaps: 16 bits, 65536 entries, 0x0000ffff mask, 262144 bytes, 5/13 rotates

Applicable optimizers applied:
* Optimized-Kernel
* Zero-Byte
* Precompute-Init
* Meet-In-The-Middle
* Early-Skip
* Not-Salted
* Not-Iterated
* Single-Hash
* Single-Salt
* Brute-Force
* Raw-Hash

Watchdog: Temperature abort trigger set to 90c

Host memory required for this attack: 292 MB

675f716dbc0d7363affe3dc7487433f8:Himfk9j3       
                                               
Session..........: hashcat
Status...........: Cracked
Hash.Name........: MD5
Hash.Target......: 675f716dbc0d7363affe3dc7487433f8
Time.Started.....: Wed Dec 16 08:51:16 2020 (1 sec)
Time.Estimated...: Wed Dec 16 08:51:17 2020 (0 secs)
Guess.Mask.......: ?u?l?l?l?l?d?l?d [8]
Guess.Queue......: 1/1 (100.00%)
Speed.#1.........: 10419.2 MH/s (10.20ms) @ Accel:32 Loops:256 Thr:1024 Vec:8
Recovered........: 1/1 (100.00%) Digests
Progress.........: 9013821440/30891577600 (29.18%)
Rejected.........: 0/9013821440 (0.00%)
Restore.Point....: 425984/1757600 (24.24%)
Restore.Sub.#1...: Salt:0 Amplifier:3328-3584 Iteration:0-256
Candidates.#1....: Mvret1e0 -> Ynoqe1x4
Hardware.Mon.#1..: Temp: 61c Fan: 33% Util: 99% Core:1240MHz Mem:3004MHz Bus:8

Started: Wed Dec 16 08:51:15 2020
Stopped: Wed Dec 16 08:51:18 2020
Reply