Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] SIGSEGV error.
From: Jeff Squyres (jsquyres_at_[hidden])
Date: 2008-03-18 07:18:52


On Mar 17, 2008, at 10:16 PM, balaji srinivas wrote:

> I am new to MPI. The outline of my code is
>
> if(r==0)
> function1()
> else if(r==1)
> function2()
>
> where r is the rank and functions are included in the .h files.
> There are no compilation errors. I get the SIGSEGV error while
> running.
> Pls help. how to solve this?
>

 From your description, it is impossible to tell if this is an MPI
issue or not. You should probably use standard debugging techniques,
such as using a debugger, examining core files, etc. See http://www.open-mpi.org/faq/?category=debugging
  if you need some suggestions for debugging in parallel.

> 2) how to find the execution time of a mpi program. in C we have
> clock_t start=clock() at the beginning and
>
> ((double)clock() - start) / CLOCKS_PER_SEC) at the end.
>

I don't quite understand your question -- is your use of clock()
reporting incorrect wall clock times?

-- 
Jeff Squyres
Cisco Systems