Is Matlab/ Simulink supporting Nvidia external GPU Systems/Thunderbold 3 for Machine Learning and Deep Learning projects including embedded systems like Jetson TX2?
Show older comments
Hi there,
we are planning some research projects on machine learning (big data approaches, creating predictive models, deep learning with object recognition). We plan to use GPU computing for this.
To make the GPU easily available for different users (with their laptops) we thought of buying an "external GPU" case (equiped with i.e. Nvidia Geforce 1080Ti) in combination with Thunderbold 3 interfaces. Different users could prepare their tasks and alternately connect the eGPU only for training of their networks.
Does MATLAB/Simulink support this setup?
Does anybody use this hardware setup? (-in combination with the "GPU-Coder Add-on" and Nvidia Jetson TX2 embedded hardware?)
How are your experiences?
Thank you!
Marcus
Accepted Answer
More Answers (1)
Marcus Kreuzer
on 21 May 2018
0 votes
6 Comments
Joss Knight
on 21 May 2018
Hi Marcus. All CPU/GPU communication is slowed down by an order of magnitude, so that means data transfer but also simply invoking a kernel launch for instance. So if you need to wait for the result of a computation, do something on the CPU, then launch another kernel, you incur the full round-trip cost. Hybrid algorithms that use CPU and GPU like SVD and other matrix factorizations suffer from this in particular.
In a particular bit of benchmarking I did (which you should take with a pinch of salt because it was one particular setup) I found that CPU/GPU bandwidth was 8x slower. So MLDIVIDE was 5x slower; but MTIMES and FFT were unchanged. Deep Learning training of AlexNet was about 2x slower. Worth noting that everything was of course still a lot faster than just running on the CPU.
The faster the connection gets (USB C Thunderbolt) the less of a problem this is so maybe one day it won't be so noticeable, if you stick to this solution.
Marcus Kreuzer
on 21 May 2018
Joss Knight
on 21 May 2018
Edited: Joss Knight
on 21 May 2018
I have experimented with the Razer Core with a USB C connection to a Lenovo laptop (can't remember which one) - however, I'd urge you not to make purchasing decisions on the basis of my one data point taken a year ago!
Walter Roberson
on 21 May 2018
I was looking at some Thunderbolt 3 external cards yesterday in response to someone else interested in external GPU enclosures. It turned out that there were two basic kinds:
- ASUS custom connectors, only compatible with some ASUS models; Or
- PCI express x4 or higher.
Marcus Kreuzer
on 20 Jun 2018
Edited: Walter Roberson
on 20 Jun 2018
Walter Roberson
on 20 Jun 2018
Thanks for the update, Marcus.
Categories
Find more on Get Started with Statistics and Machine Learning Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!