Difference between revisions of "Comsol/Batch"

From ScientificComputing
Jump to: navigation, search
(Created page with "Your COMSOL jobs have to be submitte to the batch system. For a single processor calculation a typical command is bsub [LSF-parameters] comsol batch -inputfile infile.mph -...")
 
Line 4: Line 4:
  
 
LSF-parameters are documented on the wiki page about [[Using_the_batch_system|using the batch system]].
 
LSF-parameters are documented on the wiki page about [[Using_the_batch_system|using the batch system]].
 +
 +
===Parallel jobs using shared memory===
 +
For parallel jobs using shared memory, you can specify the number of cores to be used with the '''-np''' option of COMSOL:
 +
 +
  bsub '''-n 4''' [LSF-parameters] comsol batch '''-np 4''' -inputfile infile.mph -outputfile outfile.mph
 +
 +
Please make sure that the '''-n''' option ob '''bsub''' and the '''-np''' option of COSMOL always have the same value. Please be careful to not use the '''-clustersimple''' option for shared memory jobs as this would make COMSOL start MPI processes instead of using threads.
 +
 +
If you plan to run parallel COMSOL jobs, then we strongly recommend to first do a small scaling study to find out the sweet spot for the parallel efficiency of your model. Since COMSOL can be strongly memory bound, the sweet spot might be to use 4 cores (see scaling study below).
 +
 +
===Parallel jobs using distributed memory===
 +
 +
If you would like to run COMSOL in distributed memory mode, then you need to add the '''-clustersimple''' option to your COMSOL command:
 +
 +
  bsub '''-n 4''' [LSF-parameters] comsol batch '''-clustersimple''' -inputfile infile.mph -outputfile outfile.mph
 +
 +
Please be careful to not mix the '''-clustersimple''' option with the '''-np''' option as this will lead to the problems described troubleshooting section of this page.
 +
 +
If you plan to run parallel COMSOL jobs, then we strongly recommend to first do a small scaling study to find out the sweet spot for the parallel efficiency of your model. Since COMSOL can be strongly memory bound, the sweet spot might be to use 4 cores (see scaling study below).

Revision as of 06:28, 24 August 2016

Your COMSOL jobs have to be submitte to the batch system. For a single processor calculation a typical command is

 bsub [LSF-parameters] comsol batch -inputfile infile.mph -outputfile outfile.mph 

LSF-parameters are documented on the wiki page about using the batch system.

Parallel jobs using shared memory

For parallel jobs using shared memory, you can specify the number of cores to be used with the -np option of COMSOL:

 bsub -n 4 [LSF-parameters] comsol batch -np 4 -inputfile infile.mph -outputfile outfile.mph 

Please make sure that the -n option ob bsub and the -np option of COSMOL always have the same value. Please be careful to not use the -clustersimple option for shared memory jobs as this would make COMSOL start MPI processes instead of using threads.

If you plan to run parallel COMSOL jobs, then we strongly recommend to first do a small scaling study to find out the sweet spot for the parallel efficiency of your model. Since COMSOL can be strongly memory bound, the sweet spot might be to use 4 cores (see scaling study below).

Parallel jobs using distributed memory

If you would like to run COMSOL in distributed memory mode, then you need to add the -clustersimple option to your COMSOL command:

 bsub -n 4 [LSF-parameters] comsol batch -clustersimple -inputfile infile.mph -outputfile outfile.mph

Please be careful to not mix the -clustersimple option with the -np option as this will lead to the problems described troubleshooting section of this page.

If you plan to run parallel COMSOL jobs, then we strongly recommend to first do a small scaling study to find out the sweet spot for the parallel efficiency of your model. Since COMSOL can be strongly memory bound, the sweet spot might be to use 4 cores (see scaling study below).