def _get_gpu_pci_devices(self):
        """Returns the list of gpu devices."""
        pci_device_list = self._get_pci_devices()

        gpu_list = []
        items = pci_device_list['Items']
        for item in items:
            if item['ClassCode'] in CLASSCODE_FOR_GPU_DEVICES:
                if item['SubclassCode'] in SUBCLASSCODE_FOR_GPU_DEVICES:
                    gpu_list.append(item)
        return gpu_list
def _get_gpu_pci_devices ( self ) : pci_device_list = self . _get_pci_devices ( ) gpu_list = [ ] items = pci_device_list [ 'Items' ] for item in items : if item [ 'ClassCode' ] in CLASSCODE_FOR_GPU_DEVICES : if item [ 'SubclassCode' ] in SUBCLASSCODE_FOR_GPU_DEVICES : gpu_list . append ( item ) return gpu_list
Returns the list of gpu devices.