当尝试使用板载iGPU和Nvidia分立卡时,CUDA失败。如何使用离散nvidia和集成(板载)intel gpu? [英] CUDA fails when trying to use both onboard iGPU and Nvidia discrete card. How can i use both discrete nvidia and integrated (onboard) intel gpu?

查看:298
本文介绍了当尝试使用板载iGPU和Nvidia分立卡时,CUDA失败。如何使用离散nvidia和集成(板载)intel gpu?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近有一些麻烦使我的电脑(ivybridge)使用板载的gpu(英特尔igpu HD4000)正常屏幕显示使用,而我运行我的 CUDA 程序计算在离散的Nvidia GT 640我在我的机器上。 问题是,在iGPU显示下,CUDA将无法找到nvidia卡,并且nvidia驱动程序根本无法加载。


请记住,在为显示设备使用nvidia windows驱动程序时,还有确认的问题(主要是并发),并且还想使用CUDA。
这些问题当你使用英特尔gpu作为显示
(因此只加载所述Nvidia驱动程序的一小部分),并在
许多场合不存在与nvidia驱动程序的linux发行版。


在遇到像virtu mvp这样的软件问题后,我发现这个解决方案非常简单,但无处可寻。 p>

我在这里发布,希望它有帮助。请发表任何评论,以使答案更加完整,即使它失败了一些pc配置,所以我们可以澄清说明更广泛的场景。

解决方案


  1. 您必须为集成的板载gpu安装驱动程序。这可以通过从bios
    设置使用iGPU启动时完成,您的电脑将能够加载它需要的驱动程序
    自己的。对于我的Ivy桥,BIOS设置如下:




    • 通过在启动时反复按del进入bios。


    • 按F7或鼠标点击
      相应选项进入高级模式


    • 转到高级选项卡,系统代理,并启用iGPU作为主要和
      多显示器支持。



  2. 您使用iGPU启动(我的是HD4000),检查一切正常,但现在您看到提到的问题:无法找到/使​​用CUDA设备(除了特斯拉,我认为,因为他们不被视为显示,所以他们与这无关)。通常,您可以在设备管理器下找到离散的gpu,然后从那里手动更新。然后,CUDA应该能够发现你的gpu。


  3. 您重新启动后,再次进入bios,选择PCI-E卡作为主卡,然后启动。您现在应该使用nvidia卡,一切都应该正常,但仍然无法使用iGPU和Nvidia。使用Nvidia卡时,请转到设备管理器,在显示设备中找到 Intel iGPU,然后执行驱动程序更新。


  4. 完成后,请前往以下步骤: 重新启动菜单,使用iGPU作为主要的,插入您的显示在它,现在,使用它, CUDA 将能够看到NVIDIA卡和执行计算,而显示使用iGPU,系统保持响应!我认为这也可以用于游戏或其他性能原因,如集成(板载GPU)和独立GPU的双显示器。



I had recently some trouble making my pc (ivybridge) use the onboard gpu (intel igpu HD4000) for normal screen display usage, while i run my CUDA programs for computations on the discrete Nvidia GT 640 i have on my machine. The problem was that under iGPU display, CUDA would be unable to spot the nvidia card, and the nvidia drivers would not load at all.

Keep in mind that there are confirmed issues (mostly about concurrency) when using the nvidia windows drivers for display devices, and also want to use CUDA. Those issues can get overridden when you use the Intel gpu as display (thus loading only a minimal part of said Nvidia drivers) and are on many occasions non-existent with nvidia drivers for linux distributions.

After getting in a lot of trouble with bad software like virtu mvp, i found the solution to be really simple, but nowhere to be found.

I post it here in hope that it helps. Please post any comments to make the answers more complete, even if it fails for some pc configurations, so we can clarify the instructions for a wider range of scenarios.

解决方案

  1. You have to install the drivers for your integrated onboard gpu. This can be done by booting up while using iGPU from bios settings, and your pc shall be able to load the drivers it needs on its own. For my Ivy bridge, the bios settings are these:

    • Go to bios by repeatedly pressing del on startup.

    • Go to Advanced Mode by pressing F7 or by mouse clicking the respective option

    • Go to Advanced tab,System Agent, and enable as primary the iGPU, and the multi-monitor support.

  2. You boot with the iGPU (mine was HD4000), check that all is ok, but now you see the problem mentioned: CUDA devices can't be found/used (Except Tesla, i think, since they are not considered display and so they have nothing to do with this). Normally, you can find the discrete gpu under the device manager and update it manually from there. Then, CUDA should be able to spot your gpu. If that doesn't work, proceed to step 3.

  3. You reboot, go to bios again, select as primary the PCI-E card, and boot. You should be now using the nvidia card and everything should be normal, but still no way to use both iGPU and Nvidia. While using Nvidia card, go to device manager, find Intel iGPU in display devices, and perform a driver update. This is needed despite the fact that we have already let intel get its own drivers on the previous steps.

  4. When done, go to boot menu again, use as primary the iGPU, plug your display in it, and now, when using it, CUDA will be able to see the NVIDIA card and perform computations in it, while the display uses the iGPU, and the system remains responsive! I think this can also be used for gaming, or other performance reasons, like Dual monitors on integrated (onboard GPU) and discrete GPU.

这篇关于当尝试使用板载iGPU和Nvidia分立卡时,CUDA失败。如何使用离散nvidia和集成(板载)intel gpu?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆