Skip to content

pavelzw/mpi-devcontainer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DevContainer for MPI

What is this?

This is a DevContainer environment for Visual Studio Code, allowing automatically installing the MPI libraries and the necessary Visual Studio Code extensions to set up an MPI development environment with zero additional effort.

How to use this?

Follow the Getting Started instructions to configure your Visual Studio Code and Docker to use with DevContainers.

Place the .devcontainer directory in the root of your project, and the next time you load the project, Visual Studio Code will prompt to re-open the project in a container:

image

Note: building the container might take a few minutes until all dependencies have finished downloading.

How does it work?

Visual Studio Code supports Developing inside a Container - using a Docker image as a development environment. It automates the process of creating the container image, as well as installing additional required extensions into the editor.

Pressing Reopen in Container will perform the automated steps to launch the container, and set up the environment.

For more information and setup, read the official documentation: https://code.visualstudio.com/docs/remote/containers

Get started

To compile your MPI program, run the following command in your VS Code Terminal

mpicc -o out hello_world.c

Then you can run it with 4 threads by typing

mpiexec -np 4 ./out

About

A Visual Studio Devcontainer for MPI

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published