Difference between revisions of "Parallelism"

From Planets
Jump to: navigation, search
(What is parallelism?)
Line 11: Line 11:
 
</pre>
 
</pre>
  
Then there is two choices for parallelism :
+
Then there is three choices for parallelism MPI, OMP and mix MPI_OMP:
 
<pre>
 
<pre>
 
  -parallel mpi
 
  -parallel mpi
 +
-parallel omp
 
  -parallel mpi_omp
 
  -parallel mpi_omp
 
</pre>
 
</pre>
 +
 +
So the command line to run in mix MPI_OMP will be for example :
 +
<pre>
 +
./makelmdz_fcm -s XX -t XX -d LONxLATxALT -b IRxVI -p physicSuffix
 +
-arch archFile -parallel mpi_omp gcm
 +
</pre>
 +
  
 
== How to run in parallel ==
 
== How to run in parallel ==

Revision as of 09:12, 11 May 2022

What is parallelism?

Parallel computing is a type of computation in which many calculations or processes are carried out simultaneously. Large problems can often be divided into smaller ones, which can then be solved at the same time.

How to compile in parallel

To compile the model in parallel use the same command as in sequential (CITE HOW TO COMPILE) and add the following option :

 -parallel

Then there is three choices for parallelism MPI, OMP and mix MPI_OMP:

 -parallel mpi
 -parallel omp
 -parallel mpi_omp

So the command line to run in mix MPI_OMP will be for example :

./makelmdz_fcm -s XX -t XX -d LONxLATxALT -b IRxVI -p physicSuffix
-arch archFile -parallel mpi_omp gcm


How to run in parallel

  • Run interactively
  • Run with a job scheduler