User Tools

Site Tools


cloud:recipe:gpu
no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


cloud:recipe:gpu [2020/05/14 18:25] (current) – created chudler
Line 1: Line 1:
 +======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.
 +
 +<code>
 +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
 +</code>
 +
 +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 [[ https://developer.nvidia.com/cuda-downloads | Cuda Downloads ]]
 + 
 +<code>
 +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. |
 +|===============================+======================+======================|
 +|    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                                                 |
 ++-----------------------------------------------------------------------------+
 +</code>
/var/lib/dokuwiki/data/pages/cloud/recipe/gpu.txt · Last modified: 2020/05/14 18:25 by chudler

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki