hashcat Forum
Kubuntu 18.10 Nvidia GTX 1050 OpenCL compatibility - Printable Version

+- hashcat Forum (https://hashcat.net/forum)
+-- Forum: Support (https://hashcat.net/forum/forum-3.html)
+--- Forum: hashcat (https://hashcat.net/forum/forum-45.html)
+--- Thread: Kubuntu 18.10 Nvidia GTX 1050 OpenCL compatibility (/thread-8103.html)



Kubuntu 18.10 Nvidia GTX 1050 OpenCL compatibility - TheStaticTurtle - 01-26-2019

I need some help for installing OpenCL for kubuntu 18.10. See all information here https://askubuntu.com/questions/1112918/kubuntu-18-10-nvidia-gtx-1050-opencl-compatibility


RE: Kubuntu 18.10 Nvidia GTX 1050 OpenCL compatibility - royce - 01-26-2019

You need to use the native NVIDIA drivers and their associated OpenCL.

This guide for driver baselining and reinstallation may be helpful.

https://hashcat.net/faq/wrongdriver

CUDA is not necessary for hashcat - only OpenCL is.


RE: Kubuntu 18.10 Nvidia GTX 1050 OpenCL compatibility - TheStaticTurtle - 01-26-2019

Well i followed the instruction to the letter the only thing that I guess is that the nvidia-driver-415 fit in the current requirement but still no luck with hashcat:
Code:
samuel@Samuel-PcPortable:~/Desktop/hashcat-5.1.0$ ./hashcat64.bin --benchmark
hashcat (v5.1.0) starting in benchmark mode...

Benchmarking uses hand-optimized kernel code by default.
You can use it in your cracking session by setting the -O option.
Note: Using optimized kernel code limits the maximum supported password length.
To disable the optimized kernel code in benchmark mode, use the -w option.

* Device #1: Intel's OpenCL runtime (GPU only) is currently broken.
            We are waiting for updated OpenCL drivers from Intel.
            You can use --force to override, but do not report related errors.
* Device #2: Not a native Intel OpenCL runtime. Expect massive speed loss.
            You can use --force to override, but do not report related errors.
No devices found/left.

Started: Sat Jan 26 12:04:15 2019
Stopped: Sat Jan 26 12:04:15 2019

Here 's the clinfo
Code:
samuel@Samuel-PcPortable:~/Desktop/hashcat-5.1.0$ clinfo
Number of platforms                               2
 Platform Name                                   Intel Gen OCL Driver
 Platform Vendor                                 Intel
 Platform Version                                OpenCL 2.0 beignet 1.3
 Platform Profile                                FULL_PROFILE
 Platform Extensions                             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_3d_image_writes cl_khr_image2d_from_buffer cl_khr_depth_images cl_khr_spir cl_khr_icd cl_intel_accelerator cl_intel_subgroups cl_intel_subgroups_short cl_khr_gl_sharing
 Platform Extensions function suffix             Intel

 Platform Name                                   Portable Computing Language
 Platform Vendor                                 The pocl project
 Platform Version                                OpenCL 1.2 pocl 1.1 None+Asserts, LLVM 6.0.0, SPIR, SLEEF, DISTRO, POCL_DEBUG
 Platform Profile                                FULL_PROFILE
 Platform Extensions                             cl_khr_icd
 Platform Extensions function suffix             POCL

 Platform Name                                   Intel Gen OCL Driver
Number of devices                                 1
 Device Name                                     Intel(R) HD Graphics Kabylake Halo GT2
 Device Vendor                                   Intel
 Device Vendor ID                                0x8086
 Device Version                                  OpenCL 2.0 beignet 1.3
 Driver Version                                  1.3
 Device OpenCL C Version                         OpenCL C 2.0 beignet 1.3
 Device Type                                     GPU
 Device Profile                                  FULL_PROFILE
 Device Available                                Yes
 Compiler Available                              Yes
 Linker Available                                Yes
 Max compute units                               23
 Max clock frequency                             1000MHz
 Device Partition                                (core)
   Max number of sub-devices                     1
   Supported partition types                     None, None, None
 Max work item dimensions                        3
 Max work item sizes                             512x512x512
 Max work group size                             512
 Preferred work group size multiple              16
 Preferred / native vector sizes                
   char                                                16 / 8      
   short                                                8 / 8      
   int                                                  4 / 4      
   long                                                 2 / 2      
   half                                                 0 / 8        (cl_khr_fp16)
   float                                                4 / 4      
   double                                               0 / 2        (n/a)
 Half-precision Floating-point support           (cl_khr_fp16)
   Denormals                                     No
   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
 Single-precision Floating-point support         (core)
   Denormals                                     No
   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         (n/a)
 Address bits                                    32, Little-Endian
 Global memory size                              4119855104 (3.837GiB)
 Error Correction support                        No
 Max memory allocation                           3089104896 (2.877GiB)
 Unified memory for Host and Device              Yes
 Shared Virtual Memory (SVM) capabilities        (core)
   Coarse-grained buffer sharing                 Yes
   Fine-grained buffer sharing                   No
   Fine-grained system sharing                   No
   Atomics                                       No
 Minimum alignment for any data type             128 bytes
 Alignment of base address                       1024 bits (128 bytes)
 Preferred alignment for atomics                
   SVM                                           0 bytes
   Global                                        0 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                        8192 (8KiB)
 Global Memory cache line size                   64 bytes
 Image support                                   Yes
   Max number of samplers per kernel             16
   Max size for 1D images from buffer            65536 pixels
   Max 1D or 2D image array size                 2048 images
   Base address alignment for 2D image buffers   4096 bytes
   Pitch alignment for 2D image buffers          1 pixels
   Max 2D image size                             8192x8192 pixels
   Max 3D image size                             8192x8192x2048 pixels
   Max number of read image args                 128
   Max number of write image args                8
   Max number of read/write image args           8
 Max number of pipe args                         16
 Max active pipe reservations                    1
 Max pipe packet size                            1024
 Local memory type                               Local
 Local memory size                               65536 (64KiB)
 Max number of constant args                     8
 Max constant buffer size                        134217728 (128MiB)
 Max size of kernel argument                     1024
 Queue properties (on host)                      
   Out-of-order execution                        No
   Profiling                                     Yes
 Queue properties (on device)                    
   Out-of-order execution                        Yes
   Profiling                                     Yes
   Preferred size                                16384 (16KiB)
   Max size                                      262144 (256KiB)
 Max queues on device                            1
 Max events on device                            1024
 Prefer user sync for interop                    Yes
 Profiling timer resolution                      80ns
 Execution capabilities                          
   Run OpenCL kernels                            Yes
   Run native kernels                            Yes
   SPIR versions                                 1.2
 printf() buffer size                            1048576 (1024KiB)
 Built-in kernels                                __cl_copy_region_align4;__cl_copy_region_align16;__cl_cpy_region_unalign_same_offset;__cl_copy_region_unalign_dst_offset;__cl_copy_region_unalign_src_offset;__cl_copy_buffer_rect;__cl_copy_image_1d_to_1d;__cl_copy_image_2d_to_2d;__cl_copy_image_3d_to_2d;__cl_copy_image_2d_to_3d;__cl_copy_image_3d_to_3d;__cl_copy_image_2d_to_buffer;__cl_copy_image_3d_to_buffer;__cl_copy_buffer_to_image_2d;__cl_copy_buffer_to_image_3d;__cl_fill_region_unalign;__cl_fill_region_align2;__cl_fill_region_align4;__cl_fill_region_align8_2;__cl_fill_region_align8_4;__cl_fill_region_align8_8;__cl_fill_region_align8_16;__cl_fill_region_align128;__cl_fill_image_1d;__cl_fill_image_1d_array;__cl_fill_image_2d;__cl_fill_image_2d_array;__cl_fill_image_3d;
 Device Extensions                               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_3d_image_writes cl_khr_image2d_from_buffer cl_khr_depth_images cl_khr_spir cl_khr_icd cl_intel_accelerator cl_intel_subgroups cl_intel_subgroups_short cl_khr_gl_sharing cl_khr_fp16

 Platform Name                                   Portable Computing Language
Number of devices                                 1
 Device Name                                     pthread-Intel(R) Core(TM) i5-7300HQ CPU @ 2.50GHz
 Device Vendor                                   GenuineIntel
 Device Vendor ID                                0x8086
 Device Version                                  OpenCL 1.2 pocl HSTR: pthread-x86_64-pc-linux-gnu-skylake
 Driver Version                                  1.1
 Device OpenCL C Version                         OpenCL C 1.2 pocl
 Device Type                                     CPU
 Device Profile                                  FULL_PROFILE
 Device Available                                Yes
 Compiler Available                              Yes
 Linker Available                                Yes
 Max compute units                               4
 Max clock frequency                             3500MHz
 Device Partition                                (core)
   Max number of sub-devices                     4
   Supported partition types                     equally, by counts
 Max work item dimensions                        3
 Max work item sizes                             4096x4096x4096
 Max work group size                             4096
1 error generated.
=== CL_PROGRAM_BUILD_LOG ===
error: <built-in>:2:10: '/usr/lib/llvm-6.0/lib/clang/6.0.0/include/opencl-c.h' file not found
 Preferred work group size multiple              <getWGsizes:675: build program : error -11>
 Preferred / native vector sizes                
   char                                                16 / 16      
   short                                               16 / 16      
   int                                                  8 / 8      
   long                                                 4 / 4      
   half                                                 0 / 0        (n/a)
   float                                                8 / 8      
   double                                               4 / 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                                 Yes
   Round to infinity                             Yes
   IEEE754-2008 fused multiply-add               Yes
   Support is emulated in software               No
   Correctly-rounded divide and sqrt operations  Yes
 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
 Address bits                                    64, Little-Endian
 Global memory size                              6094004224 (5.675GiB)
 Error Correction support                        No
 Max memory allocation                           2147483648 (2GiB)
 Unified memory for Host and Device              Yes
 Minimum alignment for any data type             128 bytes
 Alignment of base address                       1024 bits (128 bytes)
 Global Memory cache type                        Read/Write
 Global Memory cache size                        6291456 (6MiB)
 Global Memory cache line size                   64 bytes
 Image support                                   Yes
   Max number of samplers per kernel             16
   Max size for 1D images from buffer            134217728 pixels
   Max 1D or 2D image array size                 2048 images
   Max 2D image size                             8192x8192 pixels
   Max 3D image size                             2048x2048x2048 pixels
   Max number of read image args                 128
   Max number of write image args                128
 Local memory type                               Global
 Local memory size                               4194304 (4MiB)
 Max number of constant args                     8
 Max constant buffer size                        4194304 (4MiB)
 Max size of kernel argument                     1024
 Queue properties                                
   Out-of-order execution                        No
   Profiling                                     Yes
 Prefer user sync for interop                    Yes
 Profiling timer resolution                      1ns
 Execution capabilities                          
   Run OpenCL kernels                            Yes
   Run native kernels                            Yes
   SPIR versions                                 1.2
 printf() buffer size                            1048576 (1024KiB)
 Built-in kernels                                
 Device Extensions                               cl_khr_byte_addressable_store 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_3d_image_writes cl_khr_spir cl_khr_fp64 cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_fp64

NULL platform behavior
 clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...)  Intel Gen OCL Driver
 clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...)   Success [Intel]
 clCreateContext(NULL, ...) [default]            Success [Intel]
 clCreateContext(NULL, ...) [other]              Success [POCL]
 clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT)  Success (1)
   Platform Name                                 Intel Gen OCL Driver
   Device Name                                   Intel(R) HD Graphics Kabylake Halo GT2
 clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU)  No devices found in platform
 clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU)  Success (1)
   Platform Name                                 Intel Gen OCL Driver
   Device Name                                   Intel(R) HD Graphics Kabylake Halo GT2
 clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR)  No devices found in platform
 clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM)  No devices found in platform
 clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL)  Success (1)
   Platform Name                                 Intel Gen OCL Driver
   Device Name                                   Intel(R) HD Graphics Kabylake Halo GT2

ICD loader properties
 ICD loader Name                                 OpenCL ICD Loader
 ICD loader Vendor                               OCL Icd free software
 ICD loader Version                              2.2.11
 ICD loader Profile                              OpenCL 2.1


The only improvment right now is that I know a way to re-install the driver


RE: Kubuntu 18.10 Nvidia GTX 1050 OpenCL compatibility - philsmd - 01-26-2019

your clinfo doesn't show any Nvidia GPU at all.
what physical hardware do you have?

if you do not have a nvidia GPU, you shouldn't install the nvidia drivers.
You need to install the drivers for your specific vendor.

I only see a slow Intel GPU in your clinfo output


RE: Kubuntu 18.10 Nvidia GTX 1050 OpenCL compatibility - TheStaticTurtle - 01-26-2019

(01-26-2019, 01:12 PM)philsmd Wrote: your clinfo doesn't show any Nvidia GPU at all.
what physical hardware do you have?

if you do not have a nvidia GPU, you shouldn't install the nvidia drivers.
You need to install the drivers for your specific vendor.

I only see a slow Intel GPU in your clinfo output

lspci:
Code:
samuel@Samuel-PcPortable:~/Desktop$ lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation Device 591b (rev 04)
01:00.0 VGA compatible controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Mobile] (rev a1)

nvidia-smi:
Code:
samuel@Samuel-PcPortable:~/Desktop$ nvidia-smi
Sat Jan 26 12:14:10 2019      
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 415.27       Driver Version: 415.27       CUDA Version: 10.0     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 1050    Off  | 00000000:01:00.0  On |                  N/A |
| N/A   36C    P8    N/A /  N/A |    204MiB /  2000MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
                                                                             
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0      1499      G   /usr/lib/xorg/Xorg                           113MiB |
|    0      2303      G   kded5 [kdeinit5]                               5MiB |
|    0      2361      G   /usr/bin/plasmashell                          15MiB |
|    0      4130      G   ...quest-channel-token=8536762565275950982    67MiB |
+-----------------------------------------------------------------------------+

I think I'm pretty sure that I have a nvidia card


RE: Kubuntu 18.10 Nvidia GTX 1050 OpenCL compatibility - philsmd - 01-26-2019

maybe the problem is that you installed the drivers via package manager and the package you installed didn't setup up everything, like the ICD etc...

Did you try to install the driver from nvidia.com instead ?

again, if clinfo fails to list the Nvidia GPU, I wouldn't say it's for sure a hashcat problem. Instead, this is a good confirmation that your setup is broken and something is missing with your drivers/install.


RE: Kubuntu 18.10 Nvidia GTX 1050 OpenCL compatibility - TheStaticTurtle - 01-26-2019

I've installed them via an apt install nvidia-driver-415. For the clinfo that what I fault but since I want to use this program I figured that I could have some help


RE: Kubuntu 18.10 Nvidia GTX 1050 OpenCL compatibility - philsmd - 01-26-2019

you should follow these instructions: https://hashcat.net/faq/wrongdriver
and install the driver from your vendor page (https://www.nvidia.com)

only if you are very comfortable with your operating system packaging system and know what the packages do and what list of packages you need to get OpenCL working, you could play around with the packages...

My guess is that the nvidia package is the raw driver without opencl/icd etc... you would probably need to install several packages from apt to have the full features that the drivers from https://www.nvidia.com provide (because most ubuntu/debian users won't do anything OpenCL related and therefore do not need more than the display showing some pixels)


RE: Kubuntu 18.10 Nvidia GTX 1050 OpenCL compatibility - TheStaticTurtle - 01-26-2019

(01-26-2019, 01:34 PM)philsmd Wrote: and install the driver from your vendor page (https://www.nvidia.com)

The only problem is that on the site the nvidia diver is avalible for ubuntu 18.4 and Kubuntu latest is on 18.10 so do I just pick the 18.4 ?
Will this driver work: https://www.nvidia.fr/Download/driverResults.aspx/141803/fr


RE: Kubuntu 18.10 Nvidia GTX 1050 OpenCL compatibility - TheStaticTurtle - 01-26-2019

Ok problem resolved I works now thanks a lot