Page 1 of 1
Installation issue on a SGE cluster
Posted: Mon Jun 25, 2012 2:05 pm
by alexandre.lebouvier
Hi,
I try to install CS 2.2.1 on a cluster. The installation worked fine and the code is running in local. But when I submit a job to the cluster, i get the following message :
command 'code_saturne' not found.
I had a look to the post-install section of the installation guide, but I cant find the etc folder in the installation directory for example.
Regards,
Alex
Re: Installation issue on a SGE cluster
Posted: Mon Jun 25, 2012 4:36 pm
by Yvan Fournier
Hello,
What does your "runcase" file look like ? It should normally increment the path so that the command is found.
Do you submit your runcase, or directly "code_saturne run" ? In the latter case, you might not have the same environment in interactive or batch mode (you may have multiple .bash_* files for example, to handle this, so you may want to check with your administrator or local documentation).
The etc directory of the installation directory should be just under the directory defined with --prefix when configuring Code_Saturne (you can also run dirname `which code_saturne` and replace bin with etc to find this path).
Regards,
Yvan
Re: Installation issue on a SGE cluster
Posted: Wed Jun 27, 2012 11:20 am
by alexandre.lebouvier
Thanks Yvan.
My runcase file looks like this :
#$ -N test-cs2
#$ -S /bin/sh
#$ -cwd
#$ -j y
# Ensure the correct command is found:
export PATH="/home/guest/saturne/code_saturne-2.2.1/bin":$PATH
# Run command:
\code_saturne run
I submit the runcase. The command dirname `which code_saturne` returns /usr/local/bin. It should not be in the installation folder /home/guest/saturne/code_saturne-2.2.1/bin ??
A code_saturne command is indeed in the /usr/local/bin folder. I changed the previous path by this one, but the command is still not found.
Should I change all the profile file of the cluster?
Alex
Re: Installation issue on a SGE cluster
Posted: Wed Jun 27, 2012 11:12 pm
by Yvan Fournier
Hello,
To assist debugging, after the line exporting the PATH, coud you add:
Code: Select all
ls /home/guest/saturne/code_saturne-2.2.1/bin
python --version
set -x
What output do you get ?
Best regards,
Yvan
Re: Installation issue on a SGE cluster
Posted: Fri Jul 06, 2012 1:43 pm
by alexandre.lebouvier
Hi Yvan,
Sorry for the late reply. This code returns :
[guest@howard1 SCRIPTS]$ ./runcase
autovnv cs_create.py cs_user_scripts.py
code_saturne.in cs_exec_environment.py cs_xml_reader.py
cs_autovnv.py cs_gui.py __init__.py
cs_case_coupling.py cs_info.py runcase_aster.in
cs_case_domain.py cs_package.py.in runcase_coupling.in
cs_case.py cs_run.py runcase_mpi_rank
cs_compile.py cs_salome.py runcase_syrthes
cs_config.py.in cs_script.py SaturneGUI.in
Python 2.4.3
+ code_saturne run
on the master node.
Thanks,
Alex
Re: Installation issue on a SGE cluster
Posted: Fri Jul 06, 2012 11:44 pm
by Yvan Fournier
Hello,
Could you also submit the runcase to the cluster in batch mode and post/compare the output ?
Regards,
Yvan