Traitement en batch simple
Lorsque vous travaillez de manière interactive dans une session MATLAB®, vous pouvez décharger le travail vers une session de travail MATLAB pour l'exécuter en tant que job en batch. La commande permettant d'effectuer ce job est asynchrone, ce qui signifie que votre session client MATLAB n'est pas bloquée et que vous pouvez continuer votre propre session interactive pendant que le worker MATLAB est occupé à évaluer votre code. Vous pouvez également créer un pool de workers pour votre job en batch. Les workers peuvent s'exécuter soit sur la même machine que le client, soit, si vous utilisez MATLAB Parallel Server™, sur une machine de cluster distante.
Fonctions
Exemples et procédures
- Choose Batch Processing Function
Decide which batch programming construct to use to offload work to a cluster.
- Run Batch Parallel Jobs
Use batch to offload work from your MATLAB session to run in the background.
- Run Batch Job and Access Files from Workers
Run functions as batch jobs and control options, such as accessing files from workers.
- Share Code with Workers
Find out how to pass data and code to and from the workers.
- Control Random Number Streams on Workers
The random number generation functions
rand
,randi
, andrandn
behave differently for parallel calculations compared to your MATLAB client. - Use batch to Train Multiple Deep Learning Networks (Deep Learning Toolbox)
This example shows how to train multiple networks in batch jobs using a cluster so that you can continue working or close MATLAB® during training.
- Monitor Batch Jobs with ValueStore
This example shows how to monitor the progress of a batch job by using
ValueStore
. - Monitor Monte Carlo Batch Jobs with ValueStore
This example shows how to monitor a Monte Carlo batch job during execution by using
ValueStore
.
Concepts
- Job Monitor
Manage your jobs using the Job Monitor.