Fix the compatible issue
Change-Id: I9b837d96018c5a3b01af0326c3b720a26fbdc157
This commit is contained in:
parent
7a2c8bc16a
commit
bc8b25fe7b
@ -128,7 +128,7 @@ def _generate_dep_list(fpga):
|
||||
# once cyborg needs to support Inspur FPGA devices discovered from a
|
||||
# baremetal node, we might need to support more formats.
|
||||
driver_dep.name = CONF.host + '_' + fpga["devices"]
|
||||
driver_dep.driver_name = VENDOR_MAPS.get(fpga["vendor_id"]).upper()
|
||||
driver_dep.driver_name = VENDOR_MAPS.get(fpga["vendor_id"], '').upper()
|
||||
driver_dep.num_accelerators = 1
|
||||
driver_dep.attach_handle_list = [_generate_attach_handle(fpga)]
|
||||
dep_list.append(driver_dep)
|
||||
|
@ -128,7 +128,7 @@ def _generate_dep_list(fpga):
|
||||
driver_dep.attribute_list = _generate_attribute_list(fpga)
|
||||
driver_dep.attach_handle_list = []
|
||||
driver_dep.name = CONF.host + '_' + fpga["pci_addr"][0]
|
||||
driver_dep.driver_name = VENDOR_MAPS.get(fpga["vendor_id"]).upper()
|
||||
driver_dep.driver_name = VENDOR_MAPS.get(fpga["vendor_id"], '').upper()
|
||||
driver_dep.num_accelerators = 1
|
||||
driver_dep.attach_handle_list = _generate_attach_handle(fpga)
|
||||
dep_list.append(driver_dep)
|
||||
|
@ -138,7 +138,7 @@ def _generate_dep_list(gpu):
|
||||
# once cyborg needs to support GPU devices discovered from a baremetal
|
||||
# node, we might need to support more formats.
|
||||
driver_dep.name = gpu.get('hostname', '') + '_' + gpu["devices"]
|
||||
driver_dep.driver_name = VENDOR_MAPS.get(gpu["vendor_id"]).upper()
|
||||
driver_dep.driver_name = VENDOR_MAPS.get(gpu["vendor_id"], '').upper()
|
||||
# driver_dep.num_accelerators for PGPU is 1, for VGPU should be the
|
||||
# available_instances of the vGPU device.
|
||||
# TODO(yumeng) support VGPU num report soon
|
||||
|
@ -137,7 +137,7 @@ def _generate_dep_list(ssd):
|
||||
# once cyborg needs to support SSD devices discovered from a baremetal
|
||||
# node, we might need to support more formats.
|
||||
driver_dep.name = ssd.get('hostname', '') + '_' + ssd["devices"]
|
||||
driver_dep.driver_name = VENDOR_MAPS.get(ssd["vendor_id"]).upper()
|
||||
driver_dep.driver_name = VENDOR_MAPS.get(ssd["vendor_id"], '').upper()
|
||||
# driver_dep.num_accelerators for SSD is 1
|
||||
driver_dep.num_accelerators = 1
|
||||
driver_dep.attach_handle_list = [_generate_attach_handle(ssd)]
|
||||
|
Loading…
x
Reference in New Issue
Block a user