User Tools

Site Tools


cloud:recipe:gpu

Hardware Accelerated Compute

Several RTX 2080 cards are available within the cluster, mostly on hypervisors named beginning with gpu-a.

To quickly start using an instance with a GPU attached, you can start with our images and flavors.

openstack server create --image 18.04-GPU --flavor gpu.large --boot-from-volume=32 --config-drive=true --user-data=/path/to/your/cloud-init.yml --network campus37 nslurm-01 --wait

SSH to your instance, which automatically has a GPU attached. Our image does not have CUDA installed, so it is recommended that you install it via cloud-init, or manually. Follow instructions at Cuda Downloads

apt-get purge nvidia*; apt autoremove 
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-ubuntu1804.pin
mv cuda-ubuntu1804.pin /etc/apt/preferences.d/cuda-repository-pin-600
apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub
add-apt-repository "deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/ /"
apt-get -y install cuda
apt-get -y install cuda
nvidia-smi 

+-----------------------------------------------------------------------------+
| NVIDIA-SMI 440.64.00    Driver Version: 440.64.00    CUDA Version: 10.2     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce RTX 2080    Off  | 00000000:00:06.0 Off |                  N/A |
| 69%   72C    P0    38W / 215W |      0MiB /  7982MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+
/var/lib/dokuwiki/data/pages/cloud/recipe/gpu.txt · Last modified: 2020/05/14 18:25 by chudler