Newsgroups: comp.parallel.pvm
From: wscomp@pip.zfe.siemens.de (Martin Lehmann)
Subject: Re: determining math ops of children
Organization: Siemens AG, Neu_Perlach-Munich-Germany-Europe.
Date: 18 Apr 1996 07:04:06 GMT
Message-ID: <4l4ph6$nnv@salomon.zfe.siemens.de>

Henry Hum (henry@cs.mun.ca) wrote:
: 
: 	Is there a way for me to determine the number of mathematical
: operations that will be performed in a program?  I am looking for 
: a function, program, or methodology.
: 
: 	I am writing a PVM application and I need to know the number
: of mathematical operations that a child will perform.  With 
: simple child programs, where it exhibits fine grained behavior,
: it is easy to just guesstimate a number but I will be expanding 
: this problem to have a very coarse granularity and this will not 
: be feasible.
: 
: 	Pointers, comments, hints appreciated.
: 
-- 
Hello !

Why not counting them while executing the algorithm ? 
Use a counter for each operation and increase it every time you execute it.
If you do this in each worker, you may send the number of operations executed there 
to the farmer when ending the worker ...

(Hope this answer is not too simple ...)

CU, Martin
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= _/_/   _/_/ =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
= Martin Lehmann                       _/ _/ _/ _/       Murphy was an optimist.   =
= EMail: wscomp@pip.zfe.siemens.de    _/   _/  _/       (Corollar to Murphys Laws) =
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- _/       _/_/_/_/ -=-=-=-=-=-=-=-=-=-=-=-=-=-=-

