are there GPU settings in matlab?
23 views (last 30 days)
I just bought a new NVIDIA Titan RTX in the hopes of increasing the speed of some code but have been most disappointed in the results. It was actually slower than the same code (on a different machine) with a NVidia RTX 2080 Qmax. Are there Matlab setttings that can help me take mroe advantage of my new GPU?
Jason Ross on 1 Jul 2020
Edited: Jason Ross on 1 Jul 2020
For a Titan board, you have the option of putting it in "compute only" (TCC) mode, which frees it from the Windows GUI timeout. These are nVidia settings, not MATLAB settings, we just pick up the GPU and use it. This has helped with performance in some instances. Keep in mind that for the Turing architecture, it's going to favor singles math performance over doubles. TCC mode cannot be set for every nvidia card, but nvidia-smi will till you if it's not supported. Generally it's allowed for Titan, Tesla, and some Quadro cards.
To set it to compute only you can use the nvidia-smi command run in an elevated (Administrator) command prompt. You must also not have a monitor connected to the card. The command will look something like
"C:\Program Files\Nvidia corporation\nvsmi\nvidia-smi.exe" -i 2 -dm 1
where "-i" is the index of the Titan RTX card. You can find this by just running nvidia-smi.exe without any options:
"C:\Program Files\Nvidia corporation\nvsmi\nvidia-smi.exe"
More Answers (1)
Sindar on 28 Jun 2020