@InterfaceAudience.Private
@InterfaceStability.Unstable
public interface AbstractFpgaVendorPlugin
extends org.apache.hadoop.conf.Configurable
FpgaDiscoverer
and
FpgaResourceHandlerImpl
to discover devices/download IP/configure IPModifier and Type | Method and Description |
---|---|
boolean |
configureIP(String ipPath,
String majorMinorNumber)
The vendor plugin configure an IP file to a device
|
boolean |
diagnose(int timeout)
Diagnose the devices using vendor toolchain but no need to parse device information
|
List<FpgaResourceAllocator.FpgaDevice> |
discover(int timeout)
Discover the vendor's FPGA devices with execution time constraint
|
String |
downloadIP(String id,
String dstDir,
Map<org.apache.hadoop.fs.Path,List<String>> localizedResources)
The vendor plugin download required IP files to a required directory.
|
org.apache.hadoop.conf.Configuration |
getConf() |
String |
getFpgaType()
Since all vendor plugins share a
FpgaResourceAllocator
which distinguish FPGA devices by type. |
boolean |
initPlugin(org.apache.hadoop.conf.Configuration conf)
Check vendor's toolchain and required environment
|
void |
setConf(org.apache.hadoop.conf.Configuration conf) |
boolean initPlugin(org.apache.hadoop.conf.Configuration conf)
boolean diagnose(int timeout)
List<FpgaResourceAllocator.FpgaDevice> discover(int timeout)
timeout
- The vendor plugin should return result during this timeString getFpgaType()
FpgaResourceAllocator
which distinguish FPGA devices by type. Vendor plugin must report this.String downloadIP(String id, String dstDir, Map<org.apache.hadoop.fs.Path,List<String>> localizedResources)
id
- The identifier for IP file. Comes from application, ie. matrix_multi_v1dstDir
- The plugin should download IP file to this directorylocalizedResources
- The container localized resource can be searched for IP file. Key is
localized file path and value is soft link namesboolean configureIP(String ipPath, String majorMinorNumber)
ipPath
- The absolute path of the IP filemajorMinorNumber
- The device in format <major:minor>void setConf(org.apache.hadoop.conf.Configuration conf)
setConf
in interface org.apache.hadoop.conf.Configurable
org.apache.hadoop.conf.Configuration getConf()
getConf
in interface org.apache.hadoop.conf.Configurable
Copyright © 2008–2022 Apache Software Foundation. All rights reserved.