Arreglos distribuidos
R2026bParallel Computing Toolbox™ admite arreglos distribuidos para particionar arreglos grandes entre múltiples workers de MATLAB®. Se trabaja con el arreglo completo como una sola entidad; sin embargo, los workers solo operan con la parte del arreglo que corresponde y transfieren datos entre sí automáticamente cuando es necesario. La construcción del lenguaje single program multiple data (spmd) admite la ejecución simultánea y facilita la comunicación entre workers. Utilice operaciones matriciales y funciones compatibles con arreglos distribuidos para trabajar directamente con estos arreglos sin más modificaciones. Puede utilizar arreglos distribuidos en Parallel Computing Toolbox para ejecutar aplicaciones de Big Data con la memoria combinada del cluster.
Funciones
Clases
Temas
Arreglos distribuidos
- Create and Use Distributed Arrays
When your data array is too big to fit into the memory of a single machine, you can create adistributedarray. - Ejecutar funciones de MATLAB con arreglos distribuidos
Funciones de MATLAB que operan en arreglos distribuidos. - Distributing Arrays to Parallel Workers
Usedatastoreordistributedto create distributed arrays and partition the data among your workers. - Nondistributed Versus Distributed Arrays
Describes the various types of arrays used in communicating jobs. - Use Distributed Arrays to Solve Systems of Linear Equations with Direct Methods
This example shows how to solve a system of linear equations of the form in parallel with a direct method using distributed arrays. - Use Distributed Arrays to Solve Systems of Linear Equations with Iterative Methods
For large-scale mathematical computations, iterative methods can be more efficient than direct methods. - Resolve Error: Client Lost Connection to Worker
Troubleshoot lost connection to worker error when running code on parallel pools. (Desde R2026a)
Single Program Multiple Data (spmd)
- Choose Between spmd, parfor, and parfeval
Compare and contrastspmdagainst other parallel computing functionality such asparforandparfeval. - Run Single Programs on Multiple Data Sets
Usespmdstatements to run the same code on multiple datasets and control codistributed arrays. - Working with Codistributed Arrays
Describes how to use codistributed arrays for calculation. - Access Worker Variables with Composites
Composite objects in the MATLAB client session let you directly access data values on the workers. - Use Message Passing to Estimate Pi
This example shows the basics of working with message passing inspmdstatements, similar to collective operations in the Message Passing Interface (MPI) specification. - Train Network in Parallel with Custom Training Loop (Deep Learning Toolbox)
This example shows how to set up a custom training loop to train a network in parallel. - Looping over a Distributed Range (for-drange)
Describes how to program afor-loop with codistributed arrays. - Use spmdReduce to Achieve MPI_Allreduce Functionality
This example shows how to perform reduction operations, such as additions, finding products, minimums, or maximums, across all workers in a parallel pool. - Communicate Between Workers in SPMD Computations
Exchange data between workers usingspmdSendandspmdReceive, similar to point-to-point communication in the Message Passing Interface (MPI) standard. - Fit Distributed Logistic Regression Using drange
This example shows how to use distributed arrays andfor-drange-loops to implement logistic regression on large data. - Compute Parallel Prefix Scans with SPMD Computations
Implement a reusable, scalable, SPMD based prefix scan using a parallel workers. - Trabajar con datos remotos
Trabaje con datos remotos en Amazon S3™, Azure® Blob Storage o HDFS™.





