This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
matlab [2022/06/05 14:39] root |
matlab [2022/06/05 16:21] root |
||
---|---|---|---|
Line 11: | Line 11: | ||
</ | </ | ||
- | Matlab in recent years has recently added a number of modern features such as GPU support, data analysis and machine learning. | + | ==GPU computing== |
+ | |||
+ | Matlab in recent years has recently added a number of modern features such as GPU support, | ||
< | < | ||
Line 20: | Line 22: | ||
b = eig(a); | b = eig(a); | ||
toc; | toc; | ||
- | quit() | ||
$ matlab -nodesktop -nosplash < eigcpu.m | $ matlab -nodesktop -nosplash < eigcpu.m | ||
</ | </ | ||
- | This requires about 2700 seconds on 32-core Intel nodes and 5300 seconds on 64-core AMD nodes. | + | This requires about 2700 seconds on 32-core Intel nodes and 5300 seconds on 64-core AMD nodes. Matlab matrix functions make extensive use of Intel MKL and are often more performant on Intel systems. |
- | The GPU version is selected in code, commands are the same. Initializing the first array as gpuArray is sufficient to use the available | + | The GPU version is selected in code, commands are the same. Initializing the first array as gpuArray is sufficient to use the available |
< | < | ||
Line 35: | Line 36: | ||
b = eig(a); | b = eig(a); | ||
toc; | toc; | ||
- | quit() | ||
$ matlab -nodesktop -nosplash < eiggpu.m | $ matlab -nodesktop -nosplash < eiggpu.m | ||
</ | </ | ||
This requires about 850 seconds on V100 gpu nodes and 700 seconds on A100 single gpu nodes. | This requires about 850 seconds on V100 gpu nodes and 700 seconds on A100 single gpu nodes. | ||
+ | |||
+ | ==Parallel Computing== | ||
+ | |||
+ | Matlab has several forms of parallel computing. | ||
+ | |||
+ | See also [[https:// | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | [[https:// |