Intel Integrated GPU
#1
I have been using hashcat for few days and I am really confused about the use of integrated GPU. 

My question if the hashcat is using my GPU, or GPU is not supported in this hardware or it is running to its full potential ?

Some information about my device,

OS:
uname -a
Linux The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali) 5.5.0-kali1-amd64 #1 SMP Debian 5.5.13-2kali1 (2020-04-03) x86_64 GNU/Linux

lspci | grep "VGA"

00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)

hashcat -I --force

hashcat (v5.1.0) starting...

OpenCL Info:

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

  Device ID #1
    Type          : CPU
    Vendor ID      : 128
    Vendor        : GenuineIntel
    Name          : pthread-Intel(R) Core(TM) i3-2350M CPU @ 2.30GHz
    Version        : OpenCL 1.2 pocl HSTR: pthread-x86_64-pc-linux-gnu-sandybridge
    Processor(s)  : 4
    Clock          : 2300
    Memory        : 2048/5813 MB allocatable
    OpenCL Version : OpenCL C 1.2 pocl
    Driver Version : 1.4


I have installed the opencl runtime driver,

dpkg -l | grep opencl

ii  intel-opencl-icd                    20.13.16352-1                  amd64        Intel graphics compute runtime for OpenCL
ii  libopencl-clang10                    10.0.0-2                        amd64        thin wrapper for clang
ii  ocl-icd-libopencl1:amd64            2.2.12-3                        amd64        Generic OpenCL ICD Loader
ii  opencl-c-headers                    2.2~2019.08.06-g0d5f18c-1      all          OpenCL (Open Computing Language) C header files
ii  opencl-clhpp-headers                2.1.0~~git51-gc5063c3-1        all          C++ headers for OpenCL development
ii  opencl-headers                      2.2~2019.08.06-g0d5f18c-1      all          OpenCL (Open Computing Language) header files
ii  pocl-opencl-icd:amd64                1.4-6                          amd64        pocl ICD



Benchmark Test for md5

hashcat -m 0 -b --force

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.

OpenCL Platform #1: The pocl project
====================================
* Device #1: pthread-Intel(R) Core(TM) i3-2350M CPU @ 2.30GHz, 2048/5813 MB allocatable, 4MCU

Benchmark relevant options:
===========================
* --force
* --optimized-kernel-enable

Hashmode: 0 - MD5

Speed.#1.........: 97361.7 kH/s (39.05ms) @ Accel:1024 Loops:1024 Thr:1 Vec:8

Started: Tue Apr 21 17:55:41 2020
Stopped: Tue Apr 21 17:55:51 2020
Reply
#2
never use --force

remove pocl

try to figure out why your intel runtime is not detected
Reply
#3
(04-22-2020, 12:15 AM)undeath Wrote: never use --force

remove pocl

try to figure out why your intel runtime is not detected

Thank you the for the reply.

I have removed pocl and now the device is not showing.

I have installed the intel runtime driver, the files are in the path where they need to be.

For example,
/etc/OpenCL/vendors/intel64.icd

I do not know, if the opencl is not able to load the intel driver.
Reply
#4
in general the k a l i distribution is not recommended. You would uninstall both mesa and pocl and try to install all the required proprietary drivers from the hardware vendor page.

In some cases you would also need to install these:
https://hashcat.net/forum/thread-8116-po...l#pid43548

but normally the driver already installs everything correctly including the ICD (if not installed via the package manager, like apt, where everything is separated into their own packages).

does clinfo show all the devices ? maybe sometimes it's a good idea to step back a little bit and see if other (very easy/small) tools recognize your setuped devices etc
Reply
#5
(04-22-2020, 11:34 AM)philsmd Wrote: in general the k a l i distribution is not recommended. You would uninstall both mesa and pocl and try to install all the required proprietary drivers from the hardware vendor page.

In some cases you would also need to install these:
https://hashcat.net/forum/thread-8116-po...l#pid43548

but normally the driver already installs everything correctly including the ICD (if not installed via the package manager, like apt, where everything is separated into their own packages).

does clinfo show all the devices ? maybe sometimes it's a good idea to step back a little bit and see if other (very easy/small) tools recognize your setuped devices etc

After I remove pocl, the device is not showing up. 
I tried installing the Intel CPU runtime driver but may be they do not support The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali) Linux. Although I installed in spite of the warning but did not work out. I have faced keyword hung up problem. 

May be the problem is my 2nd gen processor. I can not find the intel driver for that.

As I have pasted my benchmark speed for md5, is it normal or it is bad? I have included all my CPU info in the above question.
Reply