CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   SU2 (https://www.cfd-online.com/Forums/su2/)
-   -   Problem Building Parallel SU2 (https://www.cfd-online.com/Forums/su2/208412-problem-building-parallel-su2.html)

StanislavKarpuk October 16, 2018 19:19

Problem Building Parallel SU2
 
1 Attachment(s)
Hello,
I have been trying to build parallel SU2 on my machine, but had no progress. I have my openMPI installed and I did exactly the same procedure as in the manual and in all threads I have read so far. However, the parallel run calculates each serial case on each processor which means SU2 has not been built correctly.

I have attached the log file.

I noticed some errors in the log file, but I have no clue how to resolve them. Does anybody know what to do?
Thank you,
Stan

pcg October 17, 2018 05:28

How are you calling SU2 to run in parallel? mpirun -n # SU2_CFD ...
I ask because it seems you have other mpi distributions in your path, could it be a case of compiling with one version and running with another?

StanislavKarpuk October 17, 2018 12:33

Quote:

Originally Posted by pcg (Post 710304)
How are you calling SU2 to run in parallel? mpirun -n # SU2_CFD ...
I ask because it seems you have other mpi distributions in your path, could it be a case of compiling with one version and running with another?

Yes, I call SU2 using mpirun -n # SU2_CFD...
I guess so, but I am not sure how to choose the right mpi. Sorry, I am really bad at this stuff

pcg October 18, 2018 07:07

No worries.
So from your config you have this in your PATH (environment variable):
/home/cfdadmin/Tools/MPITCH/mpich2-install/bin

And you are compiling with:
/home/cfdadmin/openmpi/bin/mpicc

Which is not in PATH nor is it in a system folder, so when you type "mpirun" the OS is probably using the version in your path and not the one you compiled SU2 with. To test this:
Run the command "which mpirun"
If you get /home/cfdadmin/Tools/MPITCH/mpich2-install/bin/mpirun it means the hypothesis is correct.
To fix the problem you can try running SU2 with the full path to the mpirun executable i.e.:
/home/cfdadmin/openmpi/bin/mpirun
Or, recompile SU2 with the mpi distribution you have installed in your system:
--with-cc=/home/cfdadmin/Tools/MPITCH/mpich2-install/bin/mpicc and so on.

StanislavKarpuk October 23, 2018 17:05

Quote:

Originally Posted by pcg (Post 710468)
No worries.
So from your config you have this in your PATH (environment variable):
/home/cfdadmin/Tools/MPITCH/mpich2-install/bin

And you are compiling with:
/home/cfdadmin/openmpi/bin/mpicc

Which is not in PATH nor is it in a system folder, so when you type "mpirun" the OS is probably using the version in your path and not the one you compiled SU2 with. To test this:
Run the command "which mpirun"
If you get /home/cfdadmin/Tools/MPITCH/mpich2-install/bin/mpirun it means the hypothesis is correct.
To fix the problem you can try running SU2 with the full path to the mpirun executable i.e.:
/home/cfdadmin/openmpi/bin/mpirun
Or, recompile SU2 with the mpi distribution you have installed in your system:
--with-cc=/home/cfdadmin/Tools/MPITCH/mpich2-install/bin/mpicc and so on.


Thank you very much!!! That was one problem. Another problem I found was taht I had one more SU2 installed in a local directory to which the machine was refering all the time. That SU2 was built using openmpi instead of mpich. After cleaning everything and reinstalling SU2 again, everything worked well


All times are GMT -4. The time now is 09:47.