我使用的是 Ubuntu 14.04LTS,带有 Intel CPU + 集成显卡和 GTX650 GPU。我在 SO 上问了这个问题,但他们说这是题外话。
我想使用我的 GPU 来调试 CUDA 代码,为此我需要将显示更改为仅集成。这是我当前尝试调试时遇到的错误:
"All cuda devices are used for display and cannot be used while debugging"
Run Code Online (Sandbox Code Playgroud)
我进入 BIOS 并将主显示器切换到 iGPU(集成的 HD4600)。GPU 端口没有任何输出(就显示而言),我将显示器插入主板。只有一台显示器工作。通常我有他们喜欢:
|[Monitor 1, VGA]| |[Monitor 2, DVI]|
Run Code Online (Sandbox Code Playgroud)
在该配置中,使用 iGPU,监视器 1 上不显示任何内容(它是黑色的,但计算机知道它在那里 - 绿灯亮起,我的所有窗口都在上面打开)。让它工作的唯一方法是将监视器 2 交换为 VGA,将监视器 1 交换为 DVI。
如果我进入lspci | grep VGA终端,我会得到这个:
00:02.0 VGA compatible controller: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller (rev 06)
01:00.0 VGA compatible controller: …Run Code Online (Sandbox Code Playgroud)