Bright:Add GPUs to OpenStack

From Define Wiki
Revision as of 12:38, 24 March 2016 by David (talk | contribs)
Jump to navigation Jump to search

Performed on the node with the GPUs (provisioned as a nova hypervisor - default)

Get the PCI IDs of the GPUs

In this instance we are using K80s

# check for the nvidia GPUs
[root@gpu ~]# lspci | grep -i nvidia
04:00.0 3D controller: NVIDIA Corporation GK210GL [Tesla K80] (rev a1)
05:00.0 3D controller: NVIDIA Corporation GK210GL [Tesla K80] (rev a1)
# get their IDs with the -n flag
[root@gpu ~]# lspci -nn | grep -i nvidia 
04:00.0 3D controller [0302]: NVIDIA Corporation GK210GL [Tesla K80] [10de:102d] (rev a1)
05:00.0 3D controller [0302]: NVIDIA Corporation GK210GL [Tesla K80] [10de:102d] (rev a1)
  • So the vendor id is: 10de
  • And the product id is: 102d

Update the /etc/nova/nova.conf file