              safe_shutdown()
  
  
  class Radio(argparse.Action):  # pylint: disable=too-few-public-methods
      """ Adds support for the GUI Radio buttons
  
          Just a wrapper class to tell the gui to use radio buttons instead of combo boxes
 
</s> remove             "help": "R|Detector to use. Some of these have configurable settings in "
 </s> add             "help": "R|Detector to use. NB: Unless stated, all aligners will run on CPU for AMD "
                    "GPUs. Some of these have configurable settings in " </s> remove             from lib.plaidml_tools import setup_plaidml
            setup_plaidml(arguments.loglevel)
 </s> add             plaidml_found = self.setup_amd(arguments.loglevel)
            if not plaidml_found:
                safe_shutdown()
                exit(1) </s> remove         numeric_level = getattr(logging, loglevel.upper(), None)
 </s> add         if isinstance(loglevel, int):
            numeric_level = loglevel
        else:
            numeric_level = getattr(logging, loglevel.upper(), None) </s> remove                                       "the GPU, otherwise this is automatically off."})
 </s> add                                       "the GPU, otherwise this is automatically off. NB: AMD "
                                      "cards do not support parallel processing, so if both "
                                      "aligner and detector use an AMD GPU this will "
                                      "automatically be enabled."}) </s> remove             "help": "R|Aligner to use."
 </s> add             "help": "R|Aligner to use. NB: Unless stated, all aligners will run on CPU for AMD "
                    "GPUs."
    @staticmethod
    def setup_amd(loglevel):
        """ Test for plaidml and setup for AMD """
        logger.debug("Setting up for AMD")
        try:
            import plaidml  # noqa pylint:disable=unused-import
        except ImportError:
            logger.error("PlaidML not found. Run `pip install plaidml-keras` for AMD support")
            return False
        from lib.plaidml_tools import setup_plaidml
        setup_plaidml(loglevel)
        logger.debug("setup up for PlaidML")
        return True

              safe_shutdown()
  
    @staticmethod
    def setup_amd(loglevel):
        """ Test for plaidml and setup for AMD """
        logger.debug("Setting up for AMD")
        try:
            import plaidml  # noqa pylint:disable=unused-import
        except ImportError:
            logger.error("PlaidML not found. Run `pip install plaidml-keras` for AMD support")
            return False
        from lib.plaidml_tools import setup_plaidml
        setup_plaidml(loglevel)
        logger.debug("setup up for PlaidML")
        return True

  
  class Radio(argparse.Action):  # pylint: disable=too-few-public-methods
      """ Adds support for the GUI Radio buttons
  
          Just a wrapper class to tell the gui to use radio buttons instead of combo boxes
keep add keep keep keep keep keep
 PlaidML Updates

- Add fan-amd details to Cli
- Update Extract Parallel Processing rules for plaidML
- Handle missing plaidML lib on amd flag
- Pass through correct loglevel from GPUStats to plaidml_tools 
lib/cli.py