              if self.logger:
                  self.logger.warning("No GPU detected. Switching to CPU mode")
              return
  
          self.driver = self.get_driver()
          self.devices = self.get_devices()
          self.vram = self.get_vram()
  
          self.shutdown()
          if self.logger:
              self.logger.debug("Initialized %s", self.__class__.__name__)
 
</s> remove         if IS_MACOS:
 </s> add         if self.device_count == 0:
            names = list()
        elif IS_MACOS:
              if self.logger:
                  self.logger.warning("No GPU detected. Switching to CPU mode")
              return
  


          self.vram = self.get_vram()
  
          self.shutdown()
          if self.logger:
              self.logger.debug("Initialized %s", self.__class__.__name__)
keep keep keep keep replace replace keep keep keep keep keep
 Bugfix: Return empty list when no GPU found 
lib/gpu_stats.py