Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

James471/MPI_For_Python

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MPI For Python

This is a repository for the python implementation of the material covered at the MPI Workshop(2021) IISERM held at IISERM. The lecture notes and the C++ implementation of the code can be found at MPI Workshop Mateiral.

Setup

Welp, I am using wsl and I had already installed MPI on linux so I didn't want to do it on windows again just for the sake of python. I anyways haven't used jupyter and VS Code provides and excellent interface for running code on linux when using wsl while still enjoying most of the power of a GUI. You can follow this link to set up VS Code for wsl. Everything boils down to just installing this extension pack.

Running your code

It's really simple if you have installed python, and mpi4py. Just run the following command in the terminal-

mpiexec -n numProcs python3 ScriptName.py

This is assuming that you have already installed python3 and mpi4py using pip which might require installing pip too.

If you are using communication in your script, it's best to run the script using-

mpiexec -n numProcs python3 -m mpi4py ScriptName.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.