简体   繁体   中英

How to select different implementation of MPI_Bcast function in OpenMPI

In Open MPI the Broadcast function have various implementation like Flat tree, Chain tree, Binomial, Binary, Split-binary, K-Chain tree.

How do I tell the Open MPI to use one of these implementations?

This "https://www.open-mpi.org/doc/v4.1/man3/MPI_Bcast.3.php" does not give any information about it.

You can

mpirun --mca coll_tuned_use_dynamic_rules true --mca coll_tuned_bcast_algorithm <algo> ...

where can be found from ompi_info --all :

MCA coll tuned: parameter "coll_tuned_bcast_algorithm" (current value: "ignore", data source: default, level: 5 tuner/detail, type: int)
                          Which bcast algorithm is used. Can be locked down to choice of: 0 ignore, 1 basic linear, 2 chain, 3: pipeline, 4: split binary tree, 5: binary tree, 6: binomial tree, 7: knomial tree, 8: scatter_allgather, 9: scatter_allgather_ring. Only relevant if coll_tuned_use_dynamic_rules is true.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM