Skip to content

How to align each process before algo.compute()? #591

Answered by PetrovKP
bobjiang82 asked this question in Q&A
Discussion options

You must be logged in to vote

We use mpi to run our algorithms for python. For synchronization across all group members, you can use the MPI functions. For example:

import daal4py as d4p
d4p.daalinit() # for MPI init of daal4py
from mpi4py import MPI
comm = MPI.COMM_WORLD
data = read_csv()
comm.Barrier()
algo = d4p.algorithm()
algo.compute(data)
...
d4p.daalfini() # for MPI finilize of daal4py

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bobjiang82
Comment options

Answer selected by SmirnovEgorRu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants