Dear all,
I am writing to you to know what files and instruction I should include in a batch file to be submitted in a cluster.
For the moment I am trying to do this with the "simple-junction" tutorial: instead of running it directly through the GUI I initialize the case by typing in the case1 folder:
% code_saturne run --param case1.xml --initialize
Now in the folder RESU under YYYYMMDD-HHMM I can find the following files:
case1.xml
mesh_imput
preprocessor.log
run_solver
summary
Now, what of the listed files should I include in my batch script to be submitted in the cluster?
If I want to run a parallel job should I have to match number of processors and threads through the GUI with the number of nodes I should include as a information in the batch file?
Best regards,
FA
batch job in CS
Forum rules
Please read the forum usage recommendations before posting.
Please read the forum usage recommendations before posting.
-
- Posts: 4251
- Joined: Mon Feb 20, 2012 3:25 pm
Re: batch job in CS
Hello,
Before creating the case (or re-importing it using "code_saturne create --import-only"), you need to do the post-install stage to indicate you are using a batch system. The GUI should then directly handle most batch options.
Please read the section on "post-installation" near the end of the installation manual.
Which type of batch system are you using ?
Regards,
Yvan
Before creating the case (or re-importing it using "code_saturne create --import-only"), you need to do the post-install stage to indicate you are using a batch system. The GUI should then directly handle most batch options.
Please read the section on "post-installation" near the end of the installation manual.
Which type of batch system are you using ?
Regards,
Yvan
Re: batch job in CS
Hi Yvan,
Thank you for your answer!
The batch system is SGE.
Regards,
FA
Thank you for your answer!
The batch system is SGE.
Regards,
FA
-
- Posts: 4251
- Joined: Mon Feb 20, 2012 3:25 pm
Re: batch job in CS
Hello,
Good, SGE is one of the batch systems that can be managed by Code_Saturne, so the post-install option should work.
We have not had access to a machine using SGE for a while, so it has not recently been tested, but should be OK. If there are issues parsing the batch parameters (which could lead to inconsistent values between what appears in the "runcase" and what is shown in the GUI), do not hesitate to tell us (in any case the feedback is appreciated). I do not like the SGE syntax (compared for example to SLURM), but that is another matter (it should still be usable, as we still maintain this option)...
Best regards,
Yvan
Good, SGE is one of the batch systems that can be managed by Code_Saturne, so the post-install option should work.
We have not had access to a machine using SGE for a while, so it has not recently been tested, but should be OK. If there are issues parsing the batch parameters (which could lead to inconsistent values between what appears in the "runcase" and what is shown in the GUI), do not hesitate to tell us (in any case the feedback is appreciated). I do not like the SGE syntax (compared for example to SLURM), but that is another matter (it should still be usable, as we still maintain this option)...
Best regards,
Yvan
Re: batch job in CS
Hi Yvan,
good news! thank you for your answer!
I wanted also to ask whether I should set up any particular option in my .xml file under Prepare batch calculation (Advanced options) and in performance tuning through the GUI?
Regards,
FA
good news! thank you for your answer!
I wanted also to ask whether I should set up any particular option in my .xml file under Prepare batch calculation (Advanced options) and in performance tuning through the GUI?
Regards,
FA
-
- Posts: 4251
- Joined: Mon Feb 20, 2012 3:25 pm
Re: batch job in CS
Hello,
The advanced options in "prepare batch calculation" are mostly for debugging, so you do not need to change those.
For the performance tuning aspects, the default values should be ok, but if you have time, it is always good to have feedback on the performance differences using different options, as they may be quite case-dependent. In any case, to measure performance, you will need a large enough case (the small tutorial cases are ok to test your installation, but much too small for performance testing/tuning).
Regards,
Yvan
The advanced options in "prepare batch calculation" are mostly for debugging, so you do not need to change those.
For the performance tuning aspects, the default values should be ok, but if you have time, it is always good to have feedback on the performance differences using different options, as they may be quite case-dependent. In any case, to measure performance, you will need a large enough case (the small tutorial cases are ok to test your installation, but much too small for performance testing/tuning).
Regards,
Yvan
Re: batch job in CS
Hi Yvan,
Thank you for your answer and support.
Meanwhile I run a serial batch job (simple junction) tutorial and all went ok!!
I will let you know in the near future how CS behaves with heavier jobs.
Regards,
FA
Thank you for your answer and support.
Meanwhile I run a serial batch job (simple junction) tutorial and all went ok!!
I will let you know in the near future how CS behaves with heavier jobs.
Regards,
FA