我刚刚在这样的笔记本中安装了 CUDA:
sudo apt-get install cuda
Run Code Online (Sandbox Code Playgroud)
就像这里说的。
编译工作很好,但是当我尝试运行时,我遇到了以下问题:file.cu:128 code=35(cudaErrorInsufficientDriver)“cudaStreamCreate(&(stream[i]))”的CUDA错误
我的 nvcc 版本:
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2016 NVIDIA Corporation
Built on Tue_Jan_10_13:22:03_CST_2017
Cuda compilation tools, release 8.0, V8.0.61
Run Code Online (Sandbox Code Playgroud)
显卡信息:
lspci | egrep 'VGA|3D'
00:02.0 VGA compatible controller: Intel Corporation Skylake Integrated Graphics (rev 06)
02:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 960M] (rev a2)
Run Code Online (Sandbox Code Playgroud)
我还安装了 VirtualGL、bumblebee-nvidia、primus、freeglut3-dev。继此。
当我尝试在大黄蜂上运行一些东西时,我得到了这个:optirun glxspheres64
[ 41.413478] [ERROR]Cannot access secondary GPU - error: Could not load GPU driver …
Run Code Online (Sandbox Code Playgroud)