Is using CUDA runtime always prefer over OpenCL ??
#1
Everywhere about hashcat, I read, choose CUDA over OpenCL because is faster in Cuda.
But my result shows me is not.

What is your CUDA and OpenCL speed ??

Running OpenCL:
Code:
user@compute2:$ hashcat -b -m 22000 -d 4
hashcat (v6.2.5) starting in benchmark mode

CUDA API (CUDA 11.4)
====================
* Device #1: NVIDIA GeForce GTX 1660 SUPER, skipped

OpenCL API (OpenCL 3.0 CUDA 11.4.364) - Platform #3 [NVIDIA Corporation]
========================================================================
* Device #4: NVIDIA GeForce GTX 1660 SUPER, 5824/5944 MB (1486 MB allocatable), 22MCU

Benchmark relevant options:
===========================
* --backend-devices=4
* --optimized-kernel-enable

-------------------------------------------------------------
* Hash-Mode 22000 (WPA-PBKDF2-PMKID+EAPOL) [Iterations: 4095]
-------------------------------------------------------------

Speed.#4...test1......:  303.6 kH/s (73.45ms) @ Accel:64 Loops:256 Thr:256 Vec:1
Speed.#4...test2......:  303.9 kH/s (73.54ms) @ Accel:128 Loops:128 Thr:256 Vec:1
Speed.#4...test3......:  302.7 kH/s (73.85ms) @ Accel:128 Loops:128 Thr:256 Vec:1

Started: Sun Jun 25 07:22:57 2023
Stopped: Sun Jun 25 07:23:33 2023
user@compute2:~$

running CIUDA:
Code:
user@compute2:$ hashcat -b -m 22000 -d 1
hashcat (v6.2.5) starting in benchmark mode

CUDA API (CUDA 11.4)
====================
* Device #1: NVIDIA GeForce GTX 1660 SUPER, 5872/5944 MB, 22MCU

OpenCL API (OpenCL 3.0 CUDA 11.4.364) - Platform #3 [NVIDIA Corporation]
========================================================================
* Device #4: NVIDIA GeForce GTX 1660 SUPER, skipped

Benchmark relevant options:
===========================
* --backend-devices=1
* --optimized-kernel-enable
[
-------------------------------------------------------------
* Hash-Mode 22000 (WPA-PBKDF2-PMKID+EAPOL) [Iterations: 4095]
-------------------------------------------------------------

Speed.#1..test1..:  300.5 kH/s (73.41ms) @ Accel:32 Loops:256 Thr:512 Vec:1
Speed.#1..test2..:  301.2 kH/s (73.24ms) @ Accel:32 Loops:256 Thr:512 Vec:1
Speed.#1..test3..:  300.0 kH/s (73.18ms) @ Accel:16 Loops:512 Thr:512 Vec:1

Started: Sun Jun 25 07:31:32 2023
Stopped: Sun Jun 25 07:31:37 2023
user@compute2:~$

That's is about 1% of different, which I think is quite significant.
Reply


Messages In This Thread
Is using CUDA runtime always prefer over OpenCL ?? - by Gyfer - 06-25-2023, 02:39 AM