Closed presianbg closed 3 years ago
Hi PY,
that's strange. We can at least try to squeeze the space where the error occurs and pin it down.
First of all, does hashcat run successfully the benchmark with OpenCL backend (dizcza/docker-hashcat:latest
)? If yes, then possible culprits are:
1) cuda toolkit version is not compatible with your GPU card. Try building a docker image with an older cuda version manually (6 or 7 or 8 - check out the release date of your card; but hashcat might not support old CUDA versions - need to check as well);
2) hashcat CUDA implementation fails to work with your GPU card. If it's the case (improbable though), open an issue on hashcat github after you excluded all other possible cases;
3) a problem with Solux running an nvidia docker container. Try running dizcza/docker-hashcat:latest
from within Ubuntu.
Secondly, nvidia-smi != CUDA Toolkit.
The fact that sudo docker run --rm --gpus all nvidia/cuda:11.0-base nvidia-smi
and nvidia-docker run -it dizcza/docker-hashcat:latest nvidia-smi
show the same info does not tell anything about the CUDA SDK toolkit. Although it at least correctly identifies the GPU.
From the official CUDA toolkit page,
The toolkit includes GPU-accelerated libraries, debugging and optimization tools, a C/C++ compiler, and a runtime library to build and deploy your application.
nvidia-smi
is definitely a part of CUDA toolkit. There should be some tests to check the correctness of CUDA toolkit installation. I don't know where to look for such tests.
It's strange however that Ubuntu docker container experiences issues to fetch the installed CUDA toolkit to your GPU card. The behavior should not depend on your host OS. I'm not familiar with Solux linux and don't know whether there are pitfalls running a docker container with access to an Nvidia GPU card.
Best, Danylo
Hi Danylo,
Thank you for the detailed information. I will definitely check everything you suggested and get back with the results. There is should be no problems running the docker on Solus, but you are right the my card is old and there are might be some compatibility issues.
Cheers, PY
Hi,
I found some inconsistency between the drivers required:
and
I believe the latter is just a typo.
latest
branch which bundles CUDA 10.2
works fine with hashcat benchmark, but cuda still undetected:
nvidia-docker run --gpus all -it dizcza/docker-hashcat:latest /bin/bash
Password:
root@34d67b503f89:~# hashcat -b
hashcat (v6.1.1) 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: CUDA SDK Toolkit installation NOT detected. CUDA SDK Toolkit installation required for proper device support and utilization Falling back to OpenCL Runtime
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 nvmlDeviceGetFanSpeed(): Not Supported
Hashmode: 0 - MD5
Speed.#1.........: 3238.9 MH/s (51.74ms) @ Accel:64 Loops:512 Thr:1024 Vec:2
Hashmode: 100 - SHA1
and for some reason it shows CUDA Version: `11.2` .
I was hoping that I'm doing something wrong, but looks like there is some issues with this GPU and Solus nvidia drivers.
My aim was for better performance with CUDA, but from what I'm reading looks like using hashcat in a docker will have its performance penalties compared to native one.
Maybe I will try to install ubuntu and test, but I doubt it work anyway.
With all this, I'm going to close the issue.
Still, I'd try to build docker images from cuda version 9 (because 10 also doesn't work for you) down to 6 (just need to change the first line FROM
in the Dockerfile) until the issue disappears; if the issue doesn't disappear, then it is somewhere else. In any case, it's a simple test to check.
Sure, I have never build a docker image myself. I will try. Thank you.
Hi,
First - thanks for the wonderful project. I would love to have a hashcat running wuth CUDA on my laptop (Solus Linux + nvidia GTX 860M), but CUDA SDK Toolkit is not supported on this OS,
Solus ships nvidia-docker in its repo:
Testing it (according to the nvidia-docker docs):
Everything so far is excellent, but when try to use the
:latest
branch:And the
:cuda
branch:Note that
CUDA SDK Toolkit
can't be installed on the host system :(What am I doing wrong ?
Regards, PY