GPU vs CPU speed test of finite difference equation
Simulates the heat equation, with constant heat capacity and thermal conductivity, using GPU (parallel computing toolbox) or CPU (matrix calculations). Includes results from Nvidia titan and i5-2500k @ 4.2 GHz. Any suggestions welcome on speeding up either.
Cite As
Mark Ward (2025). GPU vs CPU speed test of finite difference equation (https://www.mathworks.com/matlabcentral/fileexchange/42779-gpu-vs-cpu-speed-test-of-finite-difference-equation), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Parallel Computing > Parallel Computing Toolbox > GPU Computing >
- Parallel Computing > Parallel Computing Toolbox > Performance Profiling >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.6.0.0 | more minor fixes |
||
1.5.0.0 | few more minor corrections. All the big calculations are set as single precision currently. |
||
1.4.0.0 | I temporarily uploaded a version which used massive arrays. This one is back to normal. |
||
1.3.0.0 | This version is faster and uses less memory. It uses the 'stencil' approach: see the comments for details. |
||
1.2.0.0 | Was advised by Mathworks that one of the submitted files was not a .m file, so I've re-submitted the zip archive. |
||
1.0.0.0 |