          self.initialize()
  
          if self.device_count == 0:
              if self.logger:
                  self.logger.warning("No GPU detected. Switching to CPU mode")
              return
  
 
</s> remove         self.driver = self.get_driver()
        self.devices = self.get_devices()
 </s> add  </s> remove         if IS_MACOS:
 </s> add         if self.device_count == 0:
            names = list()
        elif IS_MACOS:
        self.driver = self.get_driver()
        self.devices = self.get_devices()
          self.initialize()
  
        self.driver = self.get_driver()
        self.devices = self.get_devices()
          if self.device_count == 0:
              if self.logger:
                  self.logger.warning("No GPU detected. Switching to CPU mode")
              return
  
keep add keep keep keep keep keep
 Bugfix: Return empty list when no GPU found 
lib/gpu_stats.py