如何在 Ubuntu 14.10 上运行 ccminer 1.2?

如何在 Ubuntu 14.10 上运行 ccminer 1.2?

我在联想 IdeaPad-Z500 上运行 1.2 时遇到了问题,ccminer这款电脑配有 NVIDIA GT 740M,是一款支持 CUDA 的 GPU,根据https://developer.nvidia.com/cuda-gpus。我按照以下方法安装了 CUDA 工具包http://docs.nvidia.com/cuda/cuda-getting-started-guide-for-linux/index.html(添加了存储库并更新了存储库并安装了cuda)。启动时ccminer出现错误

modprobe: ERROR: could not insert 'nvidia': No such device
[2014-12-26 03:26:50] Unable to query number of CUDA devices! Is an nVidia driver installed?

单独使用optirunie以及与ieoptirun ccminer结合使用会导致sudosudo optirun ccmineroptirun sudo ccminer

modprobe: FATAL: Module nvidia-uvm not found.
[2014-12-26 03:29:08] Unable to query number of CUDA devices! Is an nVidia driver installed?

/etc/modprobe.conf在表单中添加别名

alias nvidia nvidia-340
alias nvidia-uvm nvidia-340-uvm

什么都没改变。nvidia-340nvidia-340-uvm(340.36)和bumblebee(3.2.1-5 + xedgers14.10.1)已安装。optirun -vv bash给出输出

[37049.350238] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[37049.350909] [DEBUG]optirun version 3.2.1 starting...
[37049.350962] [DEBUG]Active configuration:
[37049.350981] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[37049.350999] [DEBUG] X display: :8
[37049.351015] [DEBUG] LD_LIBRARY_PATH: /usr/lib/nvidia-340:/usr/lib32/nvidia-340
[37049.351032] [DEBUG] Socket path: /var/run/bumblebee.socket
[37049.351049] [DEBUG] Accel/display bridge: auto
[37049.351066] [DEBUG] VGL Compression: proxy
[37049.351082] [DEBUG] VGLrun extra options: 
[37049.351098] [DEBUG] Primus LD Path: /usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus
[37049.351308] [DEBUG]Using auto-detected bridge primus
[37051.419635] [INFO]Response: Yes. X is active.

[37051.419696] [INFO]Running application using primus.
[37051.419905] [DEBUG]Process bash started, PID 21812.

sudo modprobe -v nvidia-340-uvm导致错误

insmod /lib/modules/3.18.1-031801-generic/kernel/drivers/video/nvidia.ko 
modprobe: ERROR: could not insert 'nvidia_340_uvm': No such device

我不明白。我添加了 xorg-edgers PPA ppa:xorg-edgers/ppa

目前,我不清楚用法,因为没有--help参数(要求https://github.com/cbuchner1/ccminer/issues/29),但也许可以从某处检索到。

安装 CUDA 示例后,/usr/local/cuda/bin/cuda-install-samples-6.5.sh ~/cuda-examples/我运行了deviceQuery二进制文件,但失败了

bin/x86_64/linux/release/deviceQuery Starting...

 CUDA Device Query (Runtime API) version (CUDART static linking)

modprobe: ERROR: could not insert 'nvidia': No such device
cudaGetDeviceCount returned 38
-> no CUDA-capable device is detected
Result = FAIL

optirun deviceQuery失败

bin/x86_64/linux/release/deviceQuery Starting...

 CUDA Device Query (Runtime API) version (CUDART static linking)

modprobe: FATAL: Module nvidia-uvm not found.
cudaGetDeviceCount returned 30
-> unknown error
Result = FAIL

答案1

我遇到了同样的问题,只需使用自动 Nvidia 符号链接即可让 ccminer 正常工作update-alternatives。试试这个:

sudo update-alternatives --config x86_64-linux-gnu_gl_conf

选择自动(0)并输入

答案2

在阅读了 CUDA 工具包安装说明并解决了 CUDA 工具包示例的一些编译问题(以下解决方案也适用于它们)后,我发现

  1. cudamineroptirun env LD_LIBRARY_PATH=/usr/local/cuda-6.5/lib64:$LD_LIBRARY_PATH CC=gcc-4.8 CXX=g++-4.8 LANG=C ./cudaminer746a7733dda9d2b3466c54c149362e4fb205cc3f 在编译后使用源根目录中的with-o-O选项调用时有效optirun env LD_LIBRARY_PATH=/usr/local/cuda-6.5/lib64:$LD_LIBRARY_PATH CC=gcc-4.8 CXX=g++-4.8 LANG=C make
  2. 1 显示 1.2 的编译(使用相同的参数和命令)失败,ccminer因为CC和变量似乎被忽略了GCCCXX

相关内容