Please note, this is a STATIC archive of website hashcat.net from October 2020, cach3.com does not collect or store any user information, there is no "phishing" involved.

hashcat Forum

Full Version: ERROR: clCreateContext(): CL_UNKNOWN_ERROR
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Got this error today after an apt-get upgrade and apt-get dist-upgrade so something broke..
Since it worked before the update I know it's not really a problem caused by Hashcat but I hope someone can guide me in backtracking this issue
I run hashcat through optirun and it worked until I updated system Sad


OpenCL Platform #1: NVIDIA Corporation  
======================================
- Device #1: GeForce GTX 965M, 1009/4037 MB allocatable, 8MCU

OpenCL Platform #2: Mesa, skipped! No OpenCL compatible devices found

WARN: nvmlDeviceGetFanSpeed() 3 Not Supported

Hashes: 6886776 hashes; 6886776 unique digests, 1 unique salts
Bitmaps: 23 bits, 8388608 entries, 0x007fffff mask, 33554432 bytes, 5/13 rotates
Applicable Optimizers:
* Zero-Byte
* Precompute-Init
* Precompute-Merkle-Demgard
* Meet-In-The-Middle
* Early-Skip
* Not-Salted
* Not-Iterated
* Single-Salt
* Brute-Force
* Raw-Hash
Watchdog: Temperature abort trigger set to 90c
Watchdog: Temperature retain trigger set to 75c

Initializing device kernels and memory...

ERROR: clCreateContext(): CL_UNKNOWN_ERROR

This is the output from deviceQuery

 CUDA Device Query (Runtime API) version (CUDART static linking)

Detected 1 CUDA Capable device(s)

Device 0: "GeForce GTX 965M"
  CUDA Driver Version / Runtime Version          8.0 / 7.5
  CUDA Capability Major/Minor version number:    5.2
  Total amount of global memory:                 4038 MBytes (4233691136 bytes)
  ( 8) Multiprocessors, (128) CUDA Cores/MP:     1024 CUDA Cores
  GPU Max Clock rate:                            1150 MHz (1.15 GHz)
  Memory Clock rate:                             2505 Mhz
  Memory Bus Width:                              128-bit
  L2 Cache Size:                                 1048576 bytes
  Maximum Texture Dimension Size (x,y,z)         1D=(65536), 2D=(65536, 65536), 3D=(4096, 4096, 4096)
  Maximum Layered 1D Texture Size, (num) layers  1D=(16384), 2048 layers
  Maximum Layered 2D Texture Size, (num) layers  2D=(16384, 16384), 2048 layers
  Total amount of constant memory:               65536 bytes
  Total amount of shared memory per block:       49152 bytes
  Total number of registers available per block: 65536
  Warp size:                                     32
  Maximum number of threads per multiprocessor:  2048
  Maximum number of threads per block:           1024
  Max dimension size of a thread block (x,y,z): (1024, 1024, 64)
  Max dimension size of a grid size    (x,y,z): (2147483647, 65535, 65535)
  Maximum memory pitch:                          2147483647 bytes
  Texture alignment:                             512 bytes
  Concurrent copy and kernel execution:          Yes with 2 copy engine(s)
  Run time limit on kernels:                     No
  Integrated GPU sharing Host Memory:            No
  Support host page-locked memory mapping:       Yes
  Alignment requirement for Surfaces:            Yes
  Device has ECC support:                        Disabled
  Device supports Unified Addressing (UVA):      Yes
  Device PCI Domain ID / Bus ID / location ID:   0 / 1 / 0
  Compute Mode:
     < Default (multiple host threads can use ::cudaSetDevice() with device simultaneously) >

deviceQuery, CUDA Driver = CUDART, CUDA Driver Version = 8.0, CUDA Runtime Version = 7.5, NumDevs = 1, Device0 = GeForce GTX 965M
Result = PASS
Please try with any other OpenCL program (not CUDA)
(09-16-2016, 09:06 AM)atom Wrote: [ -> ]Please try with any other OpenCL program (not CUDA)

But it did work before they updated the Nvidia Cuda and opencl driver. 
For my use it's pointless to use another opencl since CUDA is what I want to use. 
And no other opencl have ever worked with my bumblebee setup
(09-16-2016, 09:15 AM)Predator Wrote: [ -> ]
(09-16-2016, 09:06 AM)atom Wrote: [ -> ]Please try with any other OpenCL program (not CUDA)

But it did work before they updated the Nvidia Cuda and opencl driver. 
For my use it's pointless to use another opencl since CUDA is what I want to use. 
And no other opencl have ever worked with my bumblebee setup

prehaps after updating and upgrading ur system with apt, ur hashcat version was upgraded aswell (happen to me to) from 2 to 3, since v3 dont use cuda anymore it wont work with out opencl, i guess if u want to use hashcat with cuda u will have to go back to V2

https://hashcat.net/files_legacy/cudaHashcat-2.01.7z
Same version as when it worked so there is something else that's broken. 
No other app complains just Hashcat. 

Before 3.10 I had no luck at all with Hashcat. 
Maybe add a function to use CUDA directly since OpenCL is a huge source of error it seems.
Is there any test program for OpenCL so I can test and dump result here?
Hmmm, really strange that no other OpenCL complains just Hashcat...
And one more thing, Hashcat 2 cuda version works perfect, why stop support for one of the most popular graphic cards out there?

OpenCL seems pretty buggy for most Intel HD/Nvidia setup so please add support for CUDA again so we don't have do dissect our computer every time.


/Predator
I have exactly the same problem, after upgrading NVIDIA driver to 367.44. Until that hashcat 3.10 was working OK.
Now:
-----------------------------------------------------------------

Code:
hashcat -m 2500 -b
hashcat (v3.10) starting in benchmark-mode...

OpenCL Platform #1: NVIDIA Corporation
======================================
- Device #1: GeForce GTX 750 Ti, 499/1999 MB allocatable, 5MCU

OpenCL Platform #2: Mesa, skipped! No OpenCL compatible devices found



ERROR: clCreateContext(): CL_UNKNOWN_ERROR

-------------------------------------------------------------------------------------------------------------------
Old cudaHashcat 2.01 is working perfectly well:
_____________________________
/
Code:
usr/share/cudaHashcat-2.01/cudaHashcat64.bin -m 2500 -b
cudaHashcat v2.01 starting in benchmark-mode...

Device #1: GeForce GTX 750 Ti, 1999MB, 1280Mhz, 5MCU

Hashtype: WPA/WPA2
Workload: 1024 loops, 32 accel

Speed.GPU.#1.:    65769 H/s

Started: Wed Sep 21 00:21:03 2016
Stopped: Wed Sep 21 00:21:22 2016

______________________________________________________________________
Predator, I've found a solution! I suppose you are running Debian or Ubuntu based system...
1. If you don't have it already - install synaptic
Code:
sudo apt-get update && sudo apt-get install synaptic
2. Open Synaptic and do a search for packages with version "367.44-1" , than install all of them without the package "libgl1-nvidia-glx"
3. At last I have installed  :
Code:
diffstat (1.61-1)
libegl1-nvidia (367.44-1)
libgles1-nvidia (367.44-1)
libgles2-nvidia (367.44-1)
libnvidia-egl-wayland (367.44-1)
libnvidia-encode1 (367.44-1)
libnvidia-fbc1 (367.44-1)
libnvidia-ifr1 (367.44-1)
libnvidia-ptxjitcompiler (367.44-1)
module-assistant (0.11.9)
nvidia-kernel-source (367.44-1)
nvidia-libopencl1 (367.44-1)
nvidia-smi (367.44-1)
quilt (0.63-5)

and removed:
Code:
nvidia-smi:i386
ocl-icd-libopencl1

The result:
Code:
hashcat -m 2500 -b
hashcat (v3.10) starting in benchmark-mode...

OpenCL Platform #1: NVIDIA Corporation
======================================
- Device #1: GeForce GTX 750 Ti, 499/1999 MB allocatable, 5MCU

OpenCL Platform #2: Mesa, skipped! No OpenCL compatible devices found

Hashtype: WPA/WPA2

Speed.Dev.#1.:    71542 H/s (89.15ms)

Started: Wed Sep 21 03:09:41 2016
Stopped: Wed Sep 21 03:09:51 2016
Hi,

I'll try that later today, thanks for your information about this.


(09-21-2016, 02:53 AM)KhanKrum Wrote: [ -> ]Predator, I've found a solution! I suppose you are running Debian or Ubuntu based system...
1. If you don't have it already - install synaptic
Code:
sudo apt-get update && sudo apt-get install synaptic
2. Open Synaptic and do a search for packages with version "367.44-1" , than install all of them without the package "libgl1-nvidia-glx"
3. At last I have installed  :
Code:
diffstat (1.61-1)
libegl1-nvidia (367.44-1)
libgles1-nvidia (367.44-1)
libgles2-nvidia (367.44-1)
libnvidia-egl-wayland (367.44-1)
libnvidia-encode1 (367.44-1)
libnvidia-fbc1 (367.44-1)
libnvidia-ifr1 (367.44-1)
libnvidia-ptxjitcompiler (367.44-1)
module-assistant (0.11.9)
nvidia-kernel-source (367.44-1)
nvidia-libopencl1 (367.44-1)
nvidia-smi (367.44-1)
quilt (0.63-5)

and removed:
Code:
nvidia-smi:i386
ocl-icd-libopencl1

The result:
Code:
hashcat -m 2500 -b
hashcat (v3.10) starting in benchmark-mode...

OpenCL Platform #1: NVIDIA Corporation
======================================
- Device #1: GeForce GTX 750 Ti, 499/1999 MB allocatable, 5MCU

OpenCL Platform #2: Mesa, skipped! No OpenCL compatible devices found

Hashtype: WPA/WPA2

Speed.Dev.#1.:    71542 H/s (89.15ms)

Started: Wed Sep 21 03:09:41 2016
Stopped: Wed Sep 21 03:09:51 2016
Pages: 1 2