Kubuntu 18.10 Nvidia GTX 1050 OpenCL 兼容性

Kubuntu 18.10 Nvidia GTX 1050 OpenCL 兼容性

我最近买了一台装有 gtx1050 的笔记本电脑,安装了 Kubuntu,经过一番努力,我和朋友终于安装了 nvidia-driver-415 和 cuda 10。但是我想将此卡与需要 OpenCL 的 hashcat 一起使用,问题就出在这里。所有这些数据包都安装在我的系统上:

libnvidia-cfg1-415/cosmic,now 415.27-0ubuntu0~gpu18.10.1 amd64 [installed,automatic]
libnvidia-common-415/cosmic,cosmic,now 415.27-0ubuntu0~gpu18.10.1 all [installed,automatic]
libnvidia-compute-415/cosmic,now 415.27-0ubuntu0~gpu18.10.1 amd64 [installed,automatic]
libnvidia-compute-415/cosmic,now 415.27-0ubuntu0~gpu18.10.1 i386 [installed,automatic]
libnvidia-decode-415/cosmic,now 415.27-0ubuntu0~gpu18.10.1 amd64 [installed,automatic]
libnvidia-decode-415/cosmic,now 415.27-0ubuntu0~gpu18.10.1 i386 [installed,automatic]
libnvidia-encode-415/cosmic,now 415.27-0ubuntu0~gpu18.10.1 amd64 [installed,automatic]
libnvidia-encode-415/cosmic,now 415.27-0ubuntu0~gpu18.10.1 i386 [installed,automatic]
libnvidia-fbc1-415/cosmic,now 415.27-0ubuntu0~gpu18.10.1 amd64 [installed,automatic]
libnvidia-fbc1-415/cosmic,now 415.27-0ubuntu0~gpu18.10.1 i386 [installed,automatic]
libnvidia-gl-415/cosmic,now 415.27-0ubuntu0~gpu18.10.1 amd64 [installed,automatic]
libnvidia-gl-415/cosmic,now 415.27-0ubuntu0~gpu18.10.1 i386 [installed,automatic]
libnvidia-ifr1-415/cosmic,now 415.27-0ubuntu0~gpu18.10.1 amd64 [installed,automatic]
libnvidia-ifr1-415/cosmic,now 415.27-0ubuntu0~gpu18.10.1 i386 [installed,automatic]
nvidia-compute-utils-415/cosmic,now 415.27-0ubuntu0~gpu18.10.1 amd64 [installed,automatic]
nvidia-dkms-415/cosmic,now 415.27-0ubuntu0~gpu18.10.1 amd64 [installed,automatic]
nvidia-driver-415/cosmic,now 415.27-0ubuntu0~gpu18.10.1 amd64 [installed]
nvidia-kernel-common-415/cosmic,now 415.27-0ubuntu0~gpu18.10.1 amd64 [installed,automatic]
nvidia-kernel-source-415/cosmic,now 415.27-0ubuntu0~gpu18.10.1 amd64 [installed,automatic]
nvidia-opencl-dev/cosmic,now 9.1.85-4ubuntu1 amd64 [installed]
nvidia-prime/cosmic,cosmic,now 0.8.10 all [installed,automatic]
nvidia-settings/cosmic,now 415.27-0ubuntu0~gpu18.10.1 amd64 [installed,automatic]
nvidia-utils-415/cosmic,now 415.27-0ubuntu0~gpu18.10.1 amd64 [installed,automatic]
xserver-xorg-video-nvidia-415/cosmic,now 415.27-0ubuntu0~gpu18.10.1 amd64 [installed,automatic]

uname -a:

Linux Samuel-PcPortable 4.18.0-13-generic #14-Ubuntu SMP Wed Dec 5 09:04:24 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

然而 hach​​cat -b 吐出这个错误:

hashcat (v4.2.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: 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: Fri Jan 25 22:36:27 2019 Stopped: Fri Jan 25 22:36:28 2019

设备 1 和 2 分别是我的 CPU 和 CPU 集成显卡我尝试过这些内核/nvidia 驱动程序的组合:4.18/415 4.18/410 4.18/396 4.15/415 4.15/410

nvidia-cuda-toolkit 也已安装

在内核 4.18 上的驱动程序 415 上安装 opencl 的步骤是什么?

答案1

因此我按照本教程解决了这个问题:https://hashcat.net/faq/wrongdriver 但不要使用 apt install 来安装 nvidia 驱动,而是从网站下载。在安装驱动之前,你还需要关闭 Xorg

相关内容