CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   SU2 Installation (https://www.cfd-online.com/Forums/su2-installation/)
-   -   Compile SU2 with mpiicpc (https://www.cfd-online.com/Forums/su2-installation/132246-compile-su2-mpiicpc.html)

codezy March 27, 2014 22:54

Compile SU2 with mpiicpc
 
Hello sir,

When I compile SU2 with inteMPI ---- mpiicpc, there are some bugs occurred as follow:

1 Making all in Common/lib
2 make[1]: Entering directory `/parastor/users/isc01/zy/temp/SU2-master-back/Common/lib'
3 mpiicpc -DPACKAGE_NAME=\"SU\^2\" -DPACKAGE_TARNAME=\"SU\^2\" -DPACKAGE_VERSION=\"3.0.0\ \"eagle\"\" -DPACKAGE_STRING=\"SU\^2\ 3.0.0\ \"eagle\"\ " -DPACKAGE_BUGREPORT=\"susquared-dev@lists.stanford.edu\" -DPACKAGE_URL=\"http://su2.stanford.edu\" -DPACKAGE=\"SU\^2\" -DVERSION=\"3.0.0\ \"e agle\"\" -I. -O3 -I/parastor/users/isc01/zy/cgns/include -I/parastor/users/isc01/zy/metis/include -DMETIS_5 -I/parastor/users/isc01/zy/tecio/ tecsrc/ -DNO_MUTATIONPP -O3 -MT ../src/libSU2_a-config_structure.o -MD -MP -MF ../src/.deps/libSU2_a-config_structure.Tpo -c -o ../src/libSU2_ a-config_structure.o `test -f '../src/config_structure.cpp' || echo './'`../src/config_structure.cpp
4 mv -f ../src/.deps/libSU2_a-config_structure.Tpo ../src/.deps/libSU2_a-config_structure.Po
5 mpiicpc -DPACKAGE_NAME=\"SU\^2\" -DPACKAGE_TARNAME=\"SU\^2\" -DPACKAGE_VERSION=\"3.0.0\ \"eagle\"\" -DPACKAGE_STRING=\"SU\^2\ 3.0.0\ \"eagle\"\ " -DPACKAGE_BUGREPORT=\"susquared-dev@lists.stanford.edu\" -DPACKAGE_URL=\"http://su2.stanford.edu\" -DPACKAGE=\"SU\^2\" -DVERSION=\"3.0.0\ \"e agle\"\" -I. -O3 -I/parastor/users/isc01/zy/cgns/include -I/parastor/users/isc01/zy/metis/include -DMETIS_5 -I/parastor/users/isc01/zy/tecio/ tecsrc/ -DNO_MUTATIONPP -O3 -MT ../src/libSU2_a-dual_grid_structure.o -MD -MP -MF ../src/.deps/libSU2_a-dual_grid_structure.Tpo -c -o ../src/l ibSU2_a-dual_grid_structure.o `test -f '../src/dual_grid_structure.cpp' || echo './'`../src/dual_grid_structure.cpp
6 /public/soft/intel/impi/3.2.2.006/include64/mpicxx.h(45): catastrophic error: #error directive: "SEEK_SET is #defined but must not be for the C ++ binding of MPI. Include mpi.h before stdio.h"
7 #error "SEEK_SET is #defined but must not be for the C++ binding of MPI. Include mpi.h before stdio.h"
8 ^
9
10 compilation aborted for ../src/dual_grid_structure.cpp (code 4)
11 make[1]: *** [../src/libSU2_a-dual_grid_structure.o] Error 4
12 make[1]: Leaving directory `/parastor/users/isc01/zy/temp/SU2-master-back/Common/lib'
13 make: *** [all-recursive] Error 1

May somebody please help me to solve this problem?

By the way, I used to try the way as follow:

Add
#undef SEEK_SET
#undef SEEK_END
#undef SEEK_CUR
before mpi.h is included

only "config_structure.hpp", "geometry_structure.hpp" and "solver_structure.hpp" need be modified

But it doesn't work. The SU2 parallel_computation got the error way.

Thank you.

CrashLaker April 13, 2014 15:28

Hello codezy.

Are you still stuck with this error?
I noticed that you've searched this http://www.cfd-online.com/Forums/su2...-compiler.html

I didn't modify any file. Using that flag worked fine for me though.

codezy April 16, 2014 04:30

Quote:

Originally Posted by CrashLaker (Post 485861)
Hello codezy.

Are you still stuck with this error?
I noticed that you've searched this http://www.cfd-online.com/Forums/su2...-compiler.html

I didn't modify any file. Using that flag worked fine for me though.


Hello sir,

Could you tell me how you can worked fine with mpiicpc?
Are you using SU2 3.0.0? Or may be your version of mpiicpc is......

Thank you

CrashLaker April 16, 2014 10:20

Quote:

Originally Posted by codezy (Post 486420)
Hello sir,

Could you tell me how you can worked fine with mpiicpc?
Are you using SU2 3.0.0? Or may be your version of mpiicpc is......

Thank you

Hello codezy.

I don't know all the in depth details since it's been a while.
But I'm using SU2 3.0 along with Intel MPI 4.1.3.048.

wish you lucky!

Edit1:
Another thing. You don't need to modify any file.
Just try adding -DMPICH_IGNORE_CXX_SEEK flag.
Note that this flag is different from this one (http://www.cfd-online.com/Forums/su2...-compiler.html)
where I saw here (https://software.intel.com/en-us/art...driver-mpiicpc).

Don't use this flag "-DMPICH_SKIP_MPICXX"!
Just this one : -DMPICH_IGNORE_CXX_SEEK ;)

Best regards.
Crash.


All times are GMT -4. The time now is 07:10.