Skip to content

MPI slides - bandwidth measurement#20

Open
CharlesVanHees wants to merge 2 commits into
blegat:mainfrom
CharlesVanHees:patch-1
Open

MPI slides - bandwidth measurement#20
CharlesVanHees wants to merge 2 commits into
blegat:mainfrom
CharlesVanHees:patch-1

Conversation

@CharlesVanHees

Copy link
Copy Markdown
Contributor

Hello,

For the bandwidth measurement, I think there is a coherence problem between the code and the comment. Or I have not understood perfectly the comment otherwise? I have modified the code, but we could also modify the comment.

I profit of this commit to make the size of the data more explicit in the collectives (to distinguish better $x_i$ of the gather and reduce collectives).

Kind regards,

Charles

I did more explicit the size of the data to make the distinction clear between gather where $x_i$ has size n/p and reduce where it has size n
To make the code coherent with the comment in the slide (about the accuracy of the bandwidth measurement), I think we should measure on sender's side?
Comment thread examples/MPI/mpi_bench1.c
double tic = MPI_Wtime();
MPI_Send(buf, size, MPI_CHAR, procid + 1, tag++, comm);
double toc = MPI_Wtime();
printf("[%d] I have send %d B in %f sec\n", procid, size, (toc-tic));

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
printf("[%d] I have send %d B in %f sec\n", procid, size, (toc-tic));
printf("[%d] I have sent %d B in %f sec\n", procid, size, (toc-tic));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants