Open MPI logo

Open MPI User's Mailing List Archives

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

Subject: Re: [OMPI users] valgrind slaves in singleton mode
From: Brian Budge (brian.budge_at_[hidden])
Date: 2012-11-17 12:42:38


Ah, I see. I just made an environment variable check to run valgrind from
the spawn and it works great. Your solution below is nice and
non-intrusive. I'll keep it in mind for the future.

Thanks,
  Brian

On Fri, Nov 16, 2012 at 7:05 PM, Ralph Castain <rhc_at_[hidden]> wrote:

> Actually, silly me. I didn't fully grok your note to see that you wanted
> to run valgrind on slaves generated via comm_spawn.
>
> That's a tad trickier, but not too hard to do. There actually is a "fork
> agent" you can define that will do what you want. If you do this:
>
> mpirun -mca orte_fork_agent "valgrind <options>" <mpirun-options> ./my_app
>
> We will execute "valgrind <options> ./my_app" whenever we start one of
> your processes. This includes process launched via comm_spawn.
>
> HTH
> Ralph
>
> On Nov 16, 2012, at 4:38 PM, Brian Budge <brian.budge_at_[hidden]> wrote:
>
> Thanks very much Ralph. Silly me I thought it might actually be some
> effort :)
>
> Brian
>
> On Fri, Nov 16, 2012 at 4:04 PM, Ralph Castain <rhc_at_[hidden]> wrote:
>
>> Easiest solution: just add valgrind into the cmd line
>>
>> mpirun <options> valgrind <valgrind-options> ./my_app
>>
>>
>> On Nov 16, 2012, at 3:37 PM, "Tom Bryan (tombry)" <tombry_at_[hidden]>
>> wrote:
>>
>> >> If I want to run valgrind on my processes, what steps should be
>> >> taken? I'm currently more interested in running valgrind on the
>> >> slave processes.
>> >
>> > I've never done it, but have you looked at the following FAQs?
>> > http://www.open-mpi.org/faq/?category=debugging
>> >
>> > ---Tom
>> >
>> >
>> > _______________________________________________
>> > users mailing list
>> > users_at_[hidden]
>> > http://www.open-mpi.org/mailman/listinfo.cgi/users
>>
>> _______________________________________________
>> users mailing list
>> users_at_[hidden]
>> http://www.open-mpi.org/mailman/listinfo.cgi/users
>>
>
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users
>
>
>
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users
>