Class FpgaDiscoverer
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleandiagnose()discover()Get available devices minor numbers from toolchain or static configuration.voidinitialize(org.apache.hadoop.conf.Configuration config) voidsetResourceHanderPlugin(AbstractFpgaVendorPlugin vendorPlugin) Methods inherited from class org.apache.hadoop.conf.Configured
getConf, setConf
-
Field Details
-
MAX_EXEC_TIMEOUT_MS
public static final int MAX_EXEC_TIMEOUT_MS- See Also:
-
-
Constructor Details
-
FpgaDiscoverer
public FpgaDiscoverer()
-
-
Method Details
-
getCurrentFpgaInfo
-
setResourceHanderPlugin
-
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
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
-