Parallel Computing Fundamentals
Choose a parallel computing solution
Parallel computing can help you to solve big computing problems in different ways. MATLAB®并行计算工具箱™提供了一个交互式编程环境,以帮助解决您的计算任务。如果您的代码运行得太慢,则可以对其进行介绍,对其进行矢量化并使用内置的MATLAB并行计算支持。万博1manbetx然后,您可以尝试通过使用parfor
on multiple MATLAB workers in a parallel pool. If you have big data, you can scale up using distributed arrays or数据存储
. You can also execute a task without waiting for it to complete, usingparfeval
,以便您可以继续执行其他任务。您可以使用不同类型的硬件来解决并行计算问题,包括台式计算机,GPU,簇和云。
Functions
Topics
基础知识
- Choose a Parallel Computing Solution
Discover the most important functionalities offered by MATLAB and Parallel Computing Toolbox to solve your parallel computing problem. - Run MATLAB Functions with Automatic Parallel Support
Take advantage of parallel computing resources without requiring any extra coding. - Interactively Run a Loop in Parallel Using parfor
Convert a slowfor
-loop into a fasterparfor
-loop. - Plot During Parameter Sweep with parfor
This example shows how to perform a parameter sweep in parallel and plot progress during parallel computations. - 从桌面到群集扩展
This example shows how to develop your parallel MATLAB® code on your local machine and scale up to a cluster. - Run Batch Parallel Jobs
使用批处理从MATLAB会话中卸载工作,以在后台运行。 - Process Big Data in the Cloud
此示例显示了如何在云中访问云中的大数据集并使用MATLAB功能在云群集中处理大数据。 - Evaluate Functions in the Background Using parfeval
Break out of a loop early and collect results as they become available. - Run MATLAB Functions on a GPU
Hundreds of functions in MATLAB and other toolboxes run automatically on a GPU if you supply agpuArray
argument. - Train Network in the Cloud Using Automatic Parallel Support(Deep Learning Toolbox)
This example shows how to train a convolutional neural network using MATLAB automatic support for parallel training.
Learn More
- What Is Parallel Computing?
Learn about MATLAB and Parallel Computing Toolbox. - Run Code on Parallel Pools
了解有关启动和停止并行池,池尺寸和群集选择的信息。 - Choose Between Thread-Based and Process-Based Environments
使用并行计算工具箱,您可以在不同的并行环境(例如基于线程或基于过程的环境)中运行并行代码。 - Run MATLAB Functions in Thread-Based Environment
检查支持您要万博1manbetx在后台运行的MATLAB功能。 - Set Environment Variables on Workers
Copy system environment variables from the client to workers in a cluster. - Write Portable Parallel Code
Write parallel code that can use parallel resources if you have Parallel Computing Toolbox and that still runs if you do not have Parallel Computing Toolbox.