KaliLinux CUDA NVRTC_ERROR_INVALID_OPTION
#1
Hello Smile

I'm on the latest The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali) Linux (brand new install).

Code:
─$ cat /proc/version Linux version 6.6.15-amd64 (devel@The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali).org) (gcc-13 (Debian 13.2.0-13) 13.2.0, GNU ld (GNU Binutils for Debian) 2.42) #1 SMP PREEMPT_DYNAMIC The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali) 6.6.15-2kali1 (2024-04-09)

I have an old GPU, so I installed "legacy nvidia driver", the latest one, which supports my GPU, and still receives updates.
Code:
─$ hashcat -I                                                  hashcat (v6.2.6) starting in backend information mode CUDA Info: ========== CUDA.Version.: 11.4 Backend Device ID #1   Name...........: NVIDIA GeForce GTX 870M   Processor(s)...: 7   Clock..........: 967   Memory.Total...: 3018 MB   Memory.Free....: 2299 MB   Local.Memory...: 48 KB   PCI.Addr.BDFe..: 0000:01:00.0 OpenCL Info: ============ OpenCL Platform ID #1   Vendor..: The pocl project   Name....: Portable Computing Language   Version.: OpenCL 3.0 PoCL 5.0+debian  Linux, None+Asserts, RELOC, SPIR, LLVM 16.0.6, SLEEF, DISTRO, POCL_DEBUG   Backend Device ID #2     Type...........: CPU     Vendor.ID......: 128     Vendor.........: GenuineIntel     Name...........: cpu-haswell-Intel(R) Core(TM) i7-4710MQ CPU @ 2.50GHz     Version........: OpenCL 3.0 PoCL HSTR: cpu-x86_64-pc-linux-gnu-haswell     Processor(s)...: 8     Clock..........: 3500     Memory.Total...: 13866 MB (limited to 2048 MB allocatable in one block)     Memory.Free....: 6901 MB     Local.Memory...: 256 KB     OpenCL.Version.: OpenCL C 1.2 PoCL     Driver.Version.: 5.0+debian



Code:
─$ nvidia-smi Thu May 16 11:30:38 2024      +-----------------------------------------------------------------------------+ | NVIDIA-SMI 470.239.06  Driver Version: 470.239.06  CUDA Version: 11.4    | |-------------------------------+----------------------+----------------------+ | GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC | | Fan  Temp  Perf  Pwr:Usage/Cap|        Memory-Usage | GPU-Util  Compute M. | |                              |                      |              MIG M. | |===============================+======================+======================| |  0  NVIDIA GeForce ...  Off  | 00000000:01:00.0 N/A |                  N/A | | N/A  63C    P5    N/A /  N/A |    704MiB /  3018MiB |    N/A      Default | |                              |                      |                  N/A | +-------------------------------+----------------------+----------------------+                                                                               +-----------------------------------------------------------------------------+ | Processes:                                                                  | |  GPU  GI  CI        PID  Type  Process name                  GPU Memory | |        ID  ID                                                  Usage      | |=============================================================================| |  No running processes found                                                | +-----------------------------------------------------------------------------+

The compatible CUDA version is indicated to be 11.4 (not only as the output of nvidia-smi but also in the official documentation).

When I run hashcat to use CUDA, I unfortunately run into the following issue:

Code:
─$ hashcat -m 0 -a 0 hash.txt /usr/share/wordlists/fasttrack.txt hashcat (v6.2.6) starting * Device #1: This hardware has outdated CUDA compute capability (3.0).             For modern OpenCL performance, upgrade to hardware that supports             CUDA compute capability version 5.0 (Maxwell) or higher. * 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 nvmlDeviceGetCurrPcieLinkWidth(): Not Supported nvmlDeviceGetClockInfo(): Not Supported nvmlDeviceGetFanSpeed(): Not Supported nvmlDeviceGetClockInfo(): Not Supported nvmlDeviceGetTemperatureThreshold(): Not Supported nvmlDeviceGetTemperatureThreshold(): Not Supported nvmlDeviceGetUtilizationRates(): Not Supported CUDA API (CUDA 11.4) ==================== * Device #1: NVIDIA GeForce GTX 870M, 2280/3018 MB, 7MCU OpenCL API (OpenCL 3.0 PoCL 5.0+debian  Linux, None+Asserts, RELOC, SPIR, LLVM 16.0.6, SLEEF, DISTRO, POCL_DEBUG) - Platform #1 [The pocl project] ================================================================================================================================================== * Device #2: cpu-haswell-Intel(R) Core(TM) i7-4710MQ CPU @ 2.50GHz, 6901/13866 MB (2048 MB allocatable), 8MCU Minimum password length supported by kernel: 0 Maximum password length supported by kernel: 256 Hashes: 1 digests; 1 unique digests, 1 unique salts Bitmaps: 16 bits, 65536 entries, 0x0000ffff mask, 262144 bytes, 5/13 rotates Rules: 1 Optimizers applied: * Zero-Byte * Early-Skip * Not-Salted * Not-Iterated * Single-Hash * Single-Salt * Raw-Hash ATTENTION! Pure (unoptimized) backend kernels selected. Pure kernels can crack longer passwords, but drastically reduce performance. If you want to switch to optimized kernels, append -O to your commandline. See the above message to find out about the exact limits. Watchdog: Temperature abort trigger set to 90c nvrtcCompileProgram(): NVRTC_ERROR_INVALID_OPTION nvrtc: error: invalid value for --gpu-architecture (-arch) * Device #1: Kernel /usr/share/hashcat/OpenCL/shared.cl build failed. * Device #1: Kernel /usr/share/hashcat/OpenCL/shared.cl build failed. Started: Thu May 16 11:30:31 2024 Stopped: Thu May 16 11:30:31 2024

What did I do wrong?

Is there any information you need that I haven't provided? Please don't hesitate Smile
Thank you very much for your help!
Reply


Messages In This Thread
KaliLinux CUDA NVRTC_ERROR_INVALID_OPTION - by hillfias - 05-16-2024, 11:50 AM