Build Status | Coverage |
---|---|
JobQueueMPI.jl is a Julia package that provides a simplified interface for running multiple jobs in parallel using MPI.jl.
It uses the Job Queue concept to manage the jobs and the MPI processes. The user can add jobs to the queue and the package will take care of sending them to the available MPI processes.
You can install JobQueueMPI.jl using the Julia package manager. From the Julia REPL, type ]
to enter the Pkg REPL mode and run:
pkg> add JobQueueMPI
First, when running a program using MPI, the user has to set the number of processes that will parallelize the computation. One of these processes will be the controller, and the others will be the workers.
We can easily delimit the areas of the code that will be executed only by the controller or the worker.
JobQueueMPI.jl has the following components:
Controller
: The controller is responsible for managing the jobs and the workers. It keeps track of the jobs that have been sent and received and sends the jobs to the available workers.Worker
: The worker is responsible for executing the jobs. It receives the jobs from the controller, executes them, and sends the results back to the controller.