java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.hadoop.yarn.server.nodemanager.containermanager.resourceplugin.fpga.FpgaDiscoverer
All Implemented Interfaces:
org.apache.hadoop.conf.Configurable

public class FpgaDiscoverer extends org.apache.hadoop.conf.Configured
  • Field Details

  • Constructor Details

    • FpgaDiscoverer

      public FpgaDiscoverer()
  • Method Details

    • getCurrentFpgaInfo

      public List<FpgaDevice> getCurrentFpgaInfo()
    • setResourceHanderPlugin

      public void setResourceHanderPlugin(AbstractFpgaVendorPlugin vendorPlugin)
    • diagnose

      public boolean diagnose()
    • initialize

      public void initialize(org.apache.hadoop.conf.Configuration config) throws org.apache.hadoop.yarn.exceptions.YarnException
      Throws:
      org.apache.hadoop.yarn.exceptions.YarnException
    • discover

      public List<FpgaDevice> discover() throws ResourceHandlerException
      Get available devices minor numbers from toolchain or static configuration.
      Returns:
      the list of FPGA devices
      Throws:
      ResourceHandlerException - if there's any error during discovery