I could be wrong (George, please feel free to correct me), but I *think*
this was the designed behavior. If you read Jelena's paper,
http://www.open-mpi.org/papers/euro-pvmmpi-2006-collective-alg-selection/euro-pvmmpi-2006-collective-alg-selection.pdf
you basically construct a new decision map with the input file, and the
it replaces the previous decision map. I doubt that the original design
intended to do what you ask to do.
Thanks
Edgar
On 5/19/2015 9:05 PM, Gilles Gouaillardet wrote:
Folks,
this is a follow-up of a discussion on the user ML started at
http://www.open-mpi.org/community/lists/users/2015/05/26882.php
1) it turns out the dynamic rule filename must be "sorted" :
- rules must be sorted by communicator size
- within a given communicator size, rules must be sorted by message size
if not, some rules are silently skipped, which is counter intuitive imho.
2) the algo picks the rule with the higher communicator size less or
equal than the current communicator size (same thing for message size).
The exception is if there are no such rule, the first rule is selected.
for example, if the config file has rules for comm size 4, 8 and 16
comm size 4 => pick rule for comm size 4
comm size 5 => pick rule for comm 4
comm size 8 => pick rule for comm 8
*but*
comm size 2 => pick rule for comm size 4 (!)
imho, this is also counter intuitive.
i would have expected no rule is picked and the default behaviour is used.
Same thing applies for message sizes.
Is this the intended design ?
1) can be solved by inserting some qsort calls after parsing the config
file.
2) can be solved by returning a NULL rule instead of the first rule ( or
by automatically inserting a rule for comm size 0 (and message size 0)
if no such rule is present in the config file).
any thoughts ?
Cheers,
Gilles
_______________________________________________
devel mailing list
de...@open-mpi.org
Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/devel
Link to this post:
http://www.open-mpi.org/community/lists/devel/2015/05/17425.php
--
Edgar Gabriel
Associate Professor
Parallel Software Technologies Lab http://pstl.cs.uh.edu
Department of Computer Science University of Houston
Philip G. Hoffman Hall, Room 524 Houston, TX-77204, USA
Tel: +1 (713) 743-3857 Fax: +1 (713) 743-3335
--