Page 1 of 1

Launch saturne job in command line on a cluster

Posted: Wed Dec 14, 2011 12:07 pm
by Laurent Herlaud
Hi everybody,
I'm a new user of code_saturne 1.3.3.
I want to lauch some jobs with the command line on a cluster(without use the GUI).
Actually it work if a lauch it on one node without using openmpi, but i want to dispatch the processes on whole cluster. And i have to use openmpi for that.
 
What options does i have to use ?
Does i have to run my saturne job script with mpirun : miprun saturne_job.sh
Or does i have to add some options after my CAS1/SCRIPTS/lance ?
 
 
Thanks for your help !

Re: Launch saturne job in command line on a cluster

Posted: Thu Dec 15, 2011 12:55 am
by Yvan Fournier
Hello,
If Code_Saturne was installed using OpenMPI (e.g. for version 1.3, in the bin/macros_*.mk for your system, if the MPI paths are defined and installation went smoothly), then all you need to do is define NOMBRE_DE_PROCESSEURS in the "lance" script, or define the correct batch parameters, if running under a batch system. The "lance" script already contains the mpirun command.
If you are only starting with Code_Saturne and not a user with already many calculation cases set up, I recommend using Code_Saturne 2.0 or 2.1.
Best regards,
  Yvan

Re: Launch saturne job in command line on a cluster

Posted: Thu Dec 15, 2011 10:20 am
by Laurent Herlaud
Hello, Yvan,
Thanks a lot for your help !
 
In fact, this is not me that have installed code_saturne. Normaly it was installed with openMPI (i have a openMPI folder .../Saturne_1.3.3/opt/openmpi-1.4.2/) and  .../Saturne_1.3.3/Noyau/ncs-1.3.3/bin/macros_Linux_x86_64.mk
My MPI paths are defined correctly.
Does i have other things to check ?
 
The final goal is to launch jobs via Sun Grid Engine as we already do with few other calculation software . But I would to  launch a Saturn calculation on multiple nodes manually in first.
If I put in 16 at NUMBER _OF_PROCESSORS option , processing begins well on 16 process, but on a single node. How to specify the nodes on which i want to divide the process?
Thanks again !
 
PS : I have to put the 2 versions of code saturne on my cluster, 1.3.3 and 2.1

Re: Launch saturne job in command line on a cluster

Posted: Thu Dec 15, 2011 3:11 pm
by Laurent Herlaud
Ok, i t is almost set. I managed to start a parralel job manually by specifying a file containing the list of nodes . Now I would like to place my job through Sun Grid Engine .
Actually it doesn't take MPI and run on only one node.
This can come in my version of openmpi that does not seem to have been compiled with support of sun grid engine. Is there a way to replace the openmpi used by Saturn?

Thanks and best regards.

Re: Launch saturne job in command line on a cluster

Posted: Thu Dec 15, 2011 4:54 pm
by Laurent Herlaud
It's fixed !
 
I had to make a $TMPDIR/machinefiles via a script in SGE.
It's work very well now, thanks a lot for the help.