Skip to main content
OpenMPI is an open-source message passing interface (MPI) library used for parallel computing on distributed systems. It enables developers to create high-performance computing applications by allowing multiple processes to communicate and coordinate with each other across a network.

Quick start guide

  1. Prerequisites
  2. Starting a virtual machine with cudoctl
  3. Installing NVIDIA CUDA Toolkit and OpenMPI via SSH
  4. Creating a custom disk image

Prerequisites

Starting a virtual machine with cudoctl

Start a virtual machine with the base image you require, here we will start with an image that already has NVIDIA drivers. You can use the CUDO Compute console to start a virtual machine using the Ubuntu 22.04 + NVIDIA drivers + Docker image or alternatively use the command line tool cudoctl First we search to find a virtual machine type to start
After deciding on a machine type of epyc-milan-rtx-a4000 in the se-smedjebacken-1 data center we can start a virtual machine:

Installing NVIDIA CUDA Toolkit and OpenMPI via SSH

Get the IP address of the virtual machine
Insert the IP address into this snippet and run it to install CUDA and OpenMPI
Wait for the installation to finish

Creating a custom disk image

Create a new disk called mpi-cuda-image
Now we can create an MPI worker with it