并行计算基础
选择平行计算解决方案
并行计算可以帮助您以不同的方式解决大型计算问题。MATLAB®and Parallel Computing Toolbox™ provide an interactive programming environment to help tackle your computing tasks. If your code runs too slowly, you can profile it, vectorize it, and use built-in MATLAB parallel computing support. Then you can try to accelerate your code by usingparfor
在平行池中的多个MATLAB工人上。如果您有大数据,则可以使用分布式数组或数据存储
。您也可以执行任务而无需等待完成,使用帕菲瓦尔
, so that you can carry on with other tasks. You can use different types of hardware to solve your parallel computing problems, including desktop computers, GPUs, clusters, and clouds.
职能
话题
基本
- 选择平行计算解决方案
发现MATLAB和并行计算工具箱提供的最重要功能来解决您的并行计算问题。 - 运行具有自动并行支持的MATLAB功能金宝app
利用并行计算资源,而无需任何额外的编码。 - 与PARFOR并行交互式运行循环
转换慢为了
- 更快地浮动parfor
-环形。 - 参数扫描期间的情节与Parfor
此示例显示了如何在并行计算过程中并行进行参数扫描和绘图进展。 - Scale Up from Desktop to Cluster
此示例显示了如何在本地机器上开发并行MATLAB®代码,并扩展到群集。 - 运行批次平行作业
采用批to offload work from your MATLAB session to run in the background. - 处理云中的大数据
This example shows how to access a large data set in the cloud and process it in a cloud cluster using MATLAB capabilities for big data. - 使用parfeval评估背景的功能
尽早突破循环并收集结果。 - 在GPU上运行MATLAB功能
如果您提供一个,MATLAB和其他工具箱中的数百个功能会自动在GPU上运行gpuarray
argument. - 使用自动平行支持在云中的火车网络金宝app(深度学习工具箱)
此示例显示了如何使用MATLAB自动支持进行并行训练训练卷积神经网络。金宝app
学到更多
- 什么是平行计算?
了解MATLAB和并行计算工具箱。 - 在平行池上运行代码
Learn about starting and stopping parallel pools, pool size, and cluster selection. - 在基于线程和基于过程的环境之间进行选择
With Parallel Computing Toolbox, you can run your parallel code in different parallel environments, such as thread-based or process-based environments. - 在基于线程的环境中运行MATLAB功能
Check support for MATLAB functions that you want to run in the background. - 将环境变量设置为工人
将系统环境变量从客户端复制到集群中的工人。 - 编写便携式并行代码
编写并行代码,如果您具有并行计算工具箱,则可以使用并行资源,如果您没有并行计算工具箱,则仍然可以运行。