On Monday 12 November 2007, Nicholas Nethercote wrote:
> On Mon, 12 Nov 2007, Ashley Pittman wrote:
> 
> > Typically with parallel applications you launch many copies of the same
> > program with the same command line parameters, the MPI implementation
> > itself numbers the processes from 0 to N-1 given N processes, this is
> > known as the MPI "rank" of a process.  Most job schedulers used for
> > launching parallel jobs export the rank as a environment variable so any
> > wrapper script, such as valgrind, can use this to name log files et al.
> >
> > Not having this in cachegrind frequently causes problems, I don't think
> > cachegrind supports --log-file-exactly currently which means I can't
> > even use a wrapper shell script to deference the variable.
> 
> $QUAL support has been added in the trunk, although it's inconsistent at the 
> moment (i.e. the naming scheme is inconsistent).  It'll be fixed for 3.3.0.

Can we solve this QUAL issue also via format string, e.g. via "...%{QUAL}...",
such that %{QUAL} is replaced by Valgrind with $QUAL from the current
environment?

I thought a little bit about the problem with callgrind.
IMHO I need multiple format strings for different scenarios, but
the format strings could refer to substitution results of each other.
E.g. it would be nice if the consistent output name specified with 
"--out-file=..."
could be refered in further arbitrary format strings as the tool requires, e.g.
as "...%o..." (for _o_utput file). Then, e.g. the default for "termination
with separate counters per thread" would be "%o-%t".

Josef


> 
> N
> 



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Valgrind-developers mailing list
Valgrind-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-developers

Reply via email to