Utilizing gpu for Matlab ONLY
3 次查看(过去 30 天)
显示 更早的评论
I'm running a Macbook Pro, which has two graphics cards, a lower power, integrated card, and a higher power, discrete card. The MBP turns the cards on and off alternatively to optimize performance/power consumption. What I would like to do is use the cards simultaneously- the integrated card to run the graphics, and the discrete card to do computations. Unfortunately, I can't seem to figure out how to get the discrete card turned on, without the system then using it to run the graphics. The result is less memory/fragmented memory available to matlab, and therefore rather limited performance.
gfxCardStatus lets me select the card I'd like the system to use for the graphics- so I can select the integrated card to run the graphics. But this turns off the discrete card entirely. Perhaps there is a way to turn the discrete card back on? Or any other ideas?
Thanks, ASmith
0 个评论
采纳的回答
Jason Ross
2012-8-1
I think I found your answer in the second bullet of the release notes of the CUDA driver for this GPU. I left the first bullet in because it also looks quite important.:
Known Issues
• There is a known issue in this release where forcing or allowing the system to go to sleep while running CUDA applications on 2012 MacBook Pro models with automatic graphics switching will cause a system crash (kernel panic). You can prevent the computer from automatically going to sleep by setting the Computer Sleep option slider to Never in the Energy Saver pane of the System Preferences.
• There is a known issue in this release where CUDA applications will not automatically engage the discrete GPU on 2012 MacBook Pro models with automatic graphics switching. To run CUDA applications, it is necessary to uncheck the Automatic Graphics Switching checkbox in the Energy Saver pane of the System Preferences.
Quadro FX for Mac or GeForce for Mac must be installed prior to CUDA 5.0.17 installation
2 个评论
Jason Ross
2012-8-1
I don't have a machine like this immediately at hand, but if I did, I'd see if nVidia has provided either the nvidia-settings or nvidia-smi utility with the installation. You'd likely need to run them from Terminal.
There's also a CUDA settings application in the System Settings, but I don't think it does too much other than allow you to check for driver updates, but something could be different with the new driver.
更多回答(1 个)
Luca
2014-5-24
I am really interested in an answer to this question as well!
Did you find a way?
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Get Started with GPU Coder 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!