Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes to sum_matrix to work more reliably under MPI #120

Open
wants to merge 1 commit into
base: gh-pages-nesi
Choose a base branch
from

Conversation

andre-geldenhuis
Copy link
Collaborator

Changes to sum_matrix to work more reliably under MPI

Changed from doSNOW to doMPI, changed the printout to partially
occur outside the function so that printouts of nodenames works
under MPI

Changed the shared mem version from dividing ncpu/2 as this gives a
nicer comparison with the MPI version, but maybe that's confusing.
mv-vs-mpi

Changed from doSNOW to doMPI, changed the printout to partially
occur outside the function so that printouts of nodenames works
under MPI

Changed the shared mem version from dividing ncpu/2 as this gives a
nicer comparison with the MPI version, but maybe that's confusing.
@andre-geldenhuis andre-geldenhuis changed the base branch from gh-pages to gh-pages-nesi October 9, 2024 02:16
@andre-geldenhuis
Copy link
Collaborator Author

Example outputs

MPI with ntasks 8

MPI Running on 'wbn151' with 2 CPU(s)
MPI Running on 'wbn160' with 2 CPU(s)
MPI Running on 'wbn159' with 2 CPU(s)
MPI Running on 'wbn159' with 2 CPU(s)
MPI Running on 'wbn159' with 2 CPU(s)
MPI Running on 'wbn159' with 2 CPU(s)
MPI Running on 'wbn158' with 2 CPU(s)
MPI Running on 'wbn158' with 2 CPU(s)
MPI Sums to 21251.861800
Done!

Shared Memory with 8 cpus

Running non-MPI task
Shared Memory Running on 'wbn116' with 8 CPU(s).
Summing [ 6.000000e+04 x 4.000000e+04 ] matrix, seed = '0'
 1% done...
 2% done...
 3% done...
 ...
  99% done...
 100% done...
(Non-MPI) Sums to -16183.637614
Done!

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.

1 participant