Hello,
thanks for your reply.
Jeff Squyres wrote:
> Please see section 4.3.3 of the LAM/MPI Installation Guide -- "C++ and
> Exceptions" (I assume that you are working with LAM v7.1.2 -- you did
> not specify).
Indeed, I am working with LAM v7.1.2 on a Etch Debian box (intel Pentium M):
my LAM is the one distributed by Debian.
>
> If this is not the problem that you are running in to, please provide
> all the information specified on http://www.lam-mpi.org/using/support/.
My trouble can be reproduce with the sphere C source file cited below.
If I do
gcc -o sphere sphere.c $(pkg-configure gts --cflags --libs) -lm
then I obtain an executable that works.
Bu, if I compile with mpicc instead:
mpicc -o sphere sphere.c $(pkg-configure gts --cflags --libs) -lm
then I get an executable which give me only `Floating point exception'.
I tried with both the options -fexception and -fno-exception but
I get the same error message.
I used the GTS (gts.sourceforge.net) packages distributed by Debian.
Just before to receive you email,
my plan was to make a static linking rather that a dynamic one:
may this resolve the issue.
Thanks in advance,
Jerome
>
>
>
>
> On Dec 16, 2006, at 8:40 AM, Jerome BENOIT wrote:
>
>> Hello List,
>>
>> I think I have isolated my problem further:
>> my current guess is that it is related to the use or not of exception
>> handling:
>> how can we manage it quickly ?
>> is ther any workaround ?
>>
>> Thanks in advance,
>> Jerome
>>
>> Jerome BENOIT wrote:
>>> Hello List,
>>>
>>> I am writing a program involving a couple of libraries,
>>> and as LAM is among them I compile the all with mpicc.
>>> I get a trouble that I can reproduce on a single example C source.
>>>
>>> I can compile this C source with both gcc and mpicc :
>>> but when I run the executable obtained with mpicc
>>> I get a `Floating point exception' .
>>>
>>> The example C source is the `examples/sphere.c'
>>> distributed with the `gts' source tarball.
>>>
>>> Any idea ?
>>>
>>> Thanks,
>>> Jerome
>>> _______________________________________________
>>> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>>>
>>
>> --Jerome BENOIT
>> jgmbenoit_at_mailsnare_dot_net
>> _______________________________________________
>> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>
>
> --Jeff Squyres
> Server Virtualization Business Unit
> Cisco Systems
>
>
--
Jerome BENOIT
jgmbenoit_at_mailsnare_dot_net
|