Using external GPU with MatLab 2020a

14 views (last 30 days)
Andres Ramirez
Andres Ramirez on 2 Apr 2020
Answered: Joss Knight on 4 Apr 2020
Hello, I am using an external TITAN V GPU housed in an AKiTiO brand expansion chassis that connects to the laptop through Thunderbolt 3. I am using MatLab 2020a and I have installed the CUDA versions and the recommended driver for the TITAN V GPU. , matlab if it recognizes the gpu, but when simulating a CNN, the training time is very slow and is almost the same as the one generated with the internal GPU (GTX 980M) that my laptop has.
Why is this happening? How could I solve it?
See if someone from Matlab Staff can help me.
Thanks for your attention.
Cheers.

Answers (1)

Joss Knight
Joss Knight on 4 Apr 2020
There may be nothing you can do. Data transfer times to an external GPU are much higher. It might help to increase the MiniBatchSize training option, or enable DispatchInBackground.
Of course, it's plausible that your network is very small and not using the GPU efficiently, so all you're seeing is the same overhead and the device makes no difference. What is the input size to your network?

Tags

Products


Release

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!