public class FpgaDiscoverer extends Object
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
FpgaDiscoverer() |
Modifier and Type | Method and Description |
---|---|
boolean |
diagnose() |
List<FpgaResourceAllocator.FpgaDevice> |
discover()
get avialable devices minor numbers from toolchain or static configuration
|
List<FpgaResourceAllocator.FpgaDevice> |
getCurrentFpgaInfo() |
static FpgaDiscoverer |
getInstance() |
void |
initialize(org.apache.hadoop.conf.Configuration conf) |
void |
setConf(org.apache.hadoop.conf.Configuration conf) |
static FpgaDiscoverer |
setInstance(FpgaDiscoverer newInstance) |
void |
setResourceHanderPlugin(AbstractFpgaVendorPlugin plugin) |
public static FpgaDiscoverer getInstance()
public static FpgaDiscoverer setInstance(FpgaDiscoverer newInstance)
public void setConf(org.apache.hadoop.conf.Configuration conf)
public List<FpgaResourceAllocator.FpgaDevice> getCurrentFpgaInfo()
public void setResourceHanderPlugin(AbstractFpgaVendorPlugin plugin)
public boolean diagnose()
public void initialize(org.apache.hadoop.conf.Configuration conf) throws org.apache.hadoop.yarn.exceptions.YarnException
org.apache.hadoop.yarn.exceptions.YarnException
public List<FpgaResourceAllocator.FpgaDevice> discover() throws ResourceHandlerException
ResourceHandlerException
Copyright © 2008–2022 Apache Software Foundation. All rights reserved.