Issue57

Title MPI-2, C++, and SEEK_SET
Priority bug Status chatting
Superseder MPICH2 issues
View: 14
Nosy List leif, luis, tan2
Assigned To leif Topics Build

Created on 2006-09-29.19:06:29 by tan2, last changed 2007-01-10.02:32:01 by leif.

Messages
msg251 (view) Author: leif Date: 2007-01-10.02:32:00
I fixed the CIT_HEADER_MPI Autoconf macro while working on PyLith:

r5749

Any 'configure' script using this macro will automatically add
-DMPICH_SKIP_MPICXX to work-around the problem.
msg246 (view) Author: leif Date: 2007-01-09.00:56:21
This issue is irrelevant for CitcomS v2.1:  CIG-Pythia is pure Python; CitcomS
has been stripped of C++ code.

However, this issue may return when Exchanger is resurrected...
msg152 (view) Author: leif Date: 2006-09-29.19:35:01
Yes, I will add this. See also issue14.

Eh Tan "Roundup Issue Tracker" wrote:

>Is it possible to distinguish mpi and mpi2 library in configure, then add
>"CPPFLAGS=-DMPICH_IGNORE_CXX_SEE" if mpi2 library is used?
>  
>
msg151 (view) Author: tan2 Date: 2006-09-29.19:08:10
Leif,

Is it possible to distinguish mpi and mpi2 library in configure, then add
"CPPFLAGS=-DMPICH_IGNORE_CXX_SEE" if mpi2 library is used?
msg150 (view) Author: tan2 Date: 2006-09-29.19:06:29
Hi Etienne,

It is a known issue of MPI-2 standard. See this link for more information.
<http://www-unix.mcs.anl.gov/mpi/mpich2/faq.htm#cxxseek>

The workaround is to set CPPFLAGS=-DMPICH_IGNORE_CXX_SEEK when you run
configure. That is:

./configure CPPFLAGS=-DMPICH_IGNORE_CXX_SEEK --prefix=$HOME/cig


Cheers,

--Eh Tan



Etienne Pallier wrote:


>> Hello,
>>
>> I have a problem when "making" (make) CitComsS (on AMD 64 bit linux
>> Fedora 5).
>> The configuration step (./configure) was ok, but then the "make" step
>> crashes when coming to MPI binding.
>> We are using MPICH2. Should we use MPICH1 instead ?
>> Have you got an idea why ?
>> Thank you.
>> Here is the "make" log :
>>
>> ...
>> make[6]: Entering directory
>> `/tmp/citcom/CitcomS-2.0.2/pythia-0.8/packages/mpi'
>> Making all in mpipython
>> make[7]: Entering directory
>> `/tmp/citcom/CitcomS-2.0.2/pythia-0.8/packages/mpi/mpipython'
>> if mpicxx -DHAVE_CONFIG_H -I. -I. -I../../..
>> -I/usr/include/python2.4  
>> -I/tmp/citcom/CitcomS-2.0.2/pythia-0.8/include   -g -O2 -MT
>> mpipython.o -MD -MP -MF ".deps/mpipython.Tpo" -c -o mpipython.o
>> mpipython.cc; \
>> then mv -f ".deps/mpipython.Tpo" ".deps/mpipython.Po"; else rm -f
>> ".deps/mpipython.Tpo"; exit 1; fi
>> Dans le fichier inclus à partir de /opt/mpi/include/mpi.h:1104,
>>          à partir de mpipython.cc:16:
>> /opt/mpi/include/mpicxx.h:26:2: erreur: #error "SEEK_SET is #defined
>> but must not be for the C++ binding of MPI"
>> /opt/mpi/include/mpicxx.h:30:2: erreur: #error "SEEK_CUR is #defined
>> but must not be for the C++ binding of MPI"
>> /opt/mpi/include/mpicxx.h:35:2: erreur: #error "SEEK_END is #defined
>> but must not be for the C++ binding of MPI"
>> make[7]: *** [mpipython.o] Erreur 1
>> make[7]: Leaving directory
>> `/tmp/citcom/CitcomS-2.0.2/pythia-0.8/packages/mpi/mpipython'
>> make[6]: *** [all-recursive] Erreur 1
>> make[6]: Leaving directory
>> `/tmp/citcom/CitcomS-2.0.2/pythia-0.8/packages/mpi'
>> make[5]: *** [all] Erreur 2
>> make[5]: Leaving directory
>> `/tmp/citcom/CitcomS-2.0.2/pythia-0.8/packages/mpi'
>> make[4]: *** [all-recursive] Erreur 1
>> make[4]: Leaving directory
>> `/tmp/citcom/CitcomS-2.0.2/pythia-0.8/packages'
>> make[3]: *** [all-recursive] Erreur 1
>> make[3]: Leaving directory `/tmp/citcom/CitcomS-2.0.2/pythia-0.8'
>> make[2]: *** [all] Erreur 2
>> make[2]: Leaving directory `/tmp/citcom/CitcomS-2.0.2/pythia-0.8'
>> make[1]: *** [all-recursive] Erreur 1
>> make[1]: Leaving directory `/tmp/citcom/CitcomS-2.0.2'
>> make: *** [all] Erreur 2
>>
History
Date User Action Args
2007-01-10 02:32:01leifsetnosy: luis, leif, tan2
messages: + msg251
2007-01-09 00:56:21leifsetnosy: luis, leif, tan2
messages: + msg246
2006-09-29 19:59:18tan2setnosy: luis, leif, tan2
superseder: + MPICH2 issues
2006-09-29 19:35:01leifsetnosy: luis, leif, tan2
messages: + msg152
2006-09-29 19:08:10tan2setstatus: unread -> chatting
nosy: luis, leif, tan2
messages: + msg151
2006-09-29 19:06:29tan2create