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
Installation issue on a SGE cluster
Forum rules
Please read the forum usage recommendations before posting.
Please read the forum usage recommendations before posting.
-
- Posts: 4207
- Joined: Mon Feb 20, 2012 3:25 pm
Re: Installation issue on a SGE cluster
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
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
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
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
-
- Posts: 4207
- Joined: Mon Feb 20, 2012 3:25 pm
Re: Installation issue on a SGE cluster
Hello,
To assist debugging, after the line exporting the PATH, coud you add:
What output do you get ?
Best regards,
Yvan
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
Best regards,
Yvan
Re: Installation issue on a SGE cluster
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
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
-
- Posts: 4207
- Joined: Mon Feb 20, 2012 3:25 pm
Re: Installation issue on a SGE cluster
Hello,
Could you also submit the runcase to the cluster in batch mode and post/compare the output ?
Regards,
Yvan
Could you also submit the runcase to the cluster in batch mode and post/compare the output ?
Regards,
Yvan