(Windows 10) Limiting GPU access: What is the default file location of the functional MATLAB application?
9 次查看(过去 30 天)
显示 更早的评论
I am trying to specify which of the two GPUs in my computer (Surface Book 3, Intel Iris Plus Graphics and NVIDIA GeForce GTX 1650) that MATLAB has access to. In Windows 10 Settings>System>Display>Graphics there is a graphics performance preference setting that will restrict certain applications to using one or the other of these two GPUs. When I select that matlab.exe that can be found in C:\Program Files\MATLAB\202xx\bin the setting applies to "MATLAB Starter Application". This makes sense, as the MATLAB symbol on the task bar closes during startup immediately prior to opening what seems to be the actual MATLAB application that I interface with. In addition to this, I have also used the NVIDIA Control Panel to disable Matlab's access to the NVIDIA processor. This has proven ineffective, as running MATLAB with the Task Manager>Performance tab shows that the NVIDIA processor usage % still goes up when I run a script that uses 3D graphics. Finally, I installed the Parallel Computing Toolbox in an attempt to use the gpuDevice([]) command to disable the NVIDIA GPU, but this has also not changed MATLAB's access to that GPU. My current hope is that by selecting the location of the application that opens after the Starter application has run its course in the Windows graphics settings, I can actually disable its access.
As an aside, the whole point of all this is so that my Surface doesn't force me to close MATLAB when I attempt to detach the screen. All this nonsense could be avoided if I knew any other way of doing that than disabling MATLAB's access to the GPU, but I have not found an answer to that elsewhere.
0 个评论
回答(1 个)
Joss Knight
2022-3-10
Deselecting the device for use for computation doesn't stop MATLAB using it for graphics.
The actual exe you're looking for is in the bin\win64 folder.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 GPU Computing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!