Skip to content

Add instructions on setting up GPU nodes on AWS #17

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions source/running.rst
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,35 @@ Once the script has been edited to your liking, re-run Packer with:
This will start a VM inside your cloud account, build the image and then shut down the VM.
From that point on, any newly-started nodes will use the new image.

AWS GPU nodes
+++++++++++++

We need to adapt the default packer image as out of the box it does not
contain any of the nvidia software necessary to interact with the GPU.

The first step is to change the ``compute_image_extra.sh`` script to
install the nvidia driver and CUDA toolchain:

.. code-block:: shell-session

[citc@mgmt ~]$ cat >> compute_image_extra.sh <<EOF
sudo dnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/rhel8/x86_64/cuda-rhel8.repo
sudo dnf clean all
sudo dnf -y install kernel-devel
sudo dnf -y module install nvidia-driver:latest-dkms
sudo dkms autoinstall
EOF

We can now re-build the image used to provision compute nodes:

.. code-block:: shell-session

[citc@mgmt ~]$ sudo /usr/local/bin/run-packer

Once this has succesfully completed you will be able to launch jobs on compute
nodes with nvidia GPUs.


Oracle GPU nodes
++++++++++++++++

Expand Down