-
Notifications
You must be signed in to change notification settings - Fork 229
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
examples: Update MPI tutorial notebook and scripts #1923
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
53d0c70
to
c4e79e5
Compare
Codecov Report
@@ Coverage Diff @@
## master #1923 +/- ##
=======================================
Coverage 89.60% 89.60%
=======================================
Files 211 211
Lines 35941 35941
Branches 5414 5414
=======================================
Hits 32205 32205
Misses 3232 3232
Partials 504 504 Continue to review full report at Codecov.
|
c4e79e5
to
537ef01
Compare
@@ -6,11 +6,6 @@ IPYTHONDIR=~/.ipython | |||
# Create a new profile, called "mpi" | |||
ipython profile create --parallel --profile=mpi | |||
|
|||
# Add the following line as per instructions from |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
out of curiosity, why are you dropping this? unnecessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, the machinery in line 12 has been deprecated.
The option engines=mpi I am using here:
is taking care of instructing the MPI launchers.
Thank you. So, you've tested it locally, right? and it still does work? nice |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this can be merged if happy
@@ -6,11 +6,6 @@ IPYTHONDIR=~/.ipython | |||
# Create a new profile, called "mpi" | |||
ipython profile create --parallel --profile=mpi | |||
|
|||
# Add the following line as per instructions from |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, the machinery in line 12 has been deprecated.
The option engines=mpi I am using here:
is taking care of instructing the MPI launchers.
Tested for me and alongside Kene as well |
Can it be re-enable in the ci or is new version still notnworking |
3fe080f
to
4e57492
Compare
ver=$(mpiexec --version) | ||
if [[ $ver == *"open-mpi"* ]]; then | ||
# OpenMPI need to be told that is allowed to oversubscribe cores | ||
rm $IPYTHONDIR/profile_mpi/ipcluster_config.py |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete any previous profiles in host.
.github/workflows/examples-mpi.yml
Outdated
# ipcluster start --profile=mpi -n 4 --daemon | ||
# py.test --nbval examples/mpi | ||
# ipcluster stop --profile=mpi | ||
pip3 install "ipyparallel<8.4" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@georgebisbas out of curiosity, why <8.4 ? and shouldn't this rather be added to the "Install dependencies" section above?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, thought of it, maybe added in requirements-optional.txt ? (8.3 is current version)
@georgebisbas we also probably need to add some NBVAL_IGNORE_OUTPUT or NBVAL_SKIP? |
23a2885
to
2321176
Compare
2321176
to
dcbfebf
Compare
db616cf
to
71c882e
Compare
71c882e
to
c00887d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost there, two small comments
.github/workflows/examples-mpi.yml
Outdated
@@ -43,14 +43,16 @@ jobs: | |||
- name: Install dependencies | |||
run: | | |||
pip install --upgrade pip | |||
pip install -e . | |||
pip install -e .[extras] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[extras,mpi]
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
requirements-optional.txt
Outdated
@@ -1,3 +1,3 @@ | |||
matplotlib | |||
ipyparallel | |||
ipyparallel<8.4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move to mpi requirements
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
requirements-optional.txt
Outdated
@@ -1,3 +1,3 @@ | |||
matplotlib | |||
ipyparallel | |||
ipyparallel<8.4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
.github/workflows/examples-mpi.yml
Outdated
@@ -43,14 +43,16 @@ jobs: | |||
- name: Install dependencies | |||
run: | | |||
pip install --upgrade pip | |||
pip install -e . | |||
pip install -e .[extras] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@@ -1 +1,2 @@ | |||
mpi4py | |||
mpi4py<4.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NFR: this was added because soon mpi4py will go to version 4 after long time of minor upgrades
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does dependabot actually understand this is a dependency file as well?
Merged, thanks |
Update the setup script and notebook.
Add deterministic output (--no-stream)
Much needed after 3 years.