public class IntelFpgaOpenclPlugin extends Object implements AbstractFpgaVendorPlugin
Modifier and Type | Class and Description |
---|---|
static class |
IntelFpgaOpenclPlugin.InnerShellExecutor
Helper class to run aocl diagnose & determine major/minor numbers.
|
Constructor and Description |
---|
IntelFpgaOpenclPlugin() |
Modifier and Type | Method and Description |
---|---|
boolean |
configureIP(String ipPath,
FpgaDevice device)
Program one device.
|
boolean |
diagnose(int timeout)
Diagnose the devices using vendor toolchain but no need to parse device information
|
List<FpgaDevice> |
discover(int timeout)
Discover the vendor's FPGA devices with execution time constraint
|
String |
getDefaultPathToExecutable() |
String |
getDiagnoseInfo(int timeout) |
String |
getFpgaType()
this is actually the opencl platform type
|
boolean |
initPlugin(org.apache.hadoop.conf.Configuration config)
Check the Intel FPGA for OpenCL toolchain.
|
String |
retrieveIPfilePath(String id,
String dstDir,
Map<org.apache.hadoop.fs.Path,List<String>> localizedResources)
The vendor plugin download required IP files to a required directory.
|
public String getDefaultPathToExecutable()
public boolean initPlugin(org.apache.hadoop.conf.Configuration config)
initPlugin
in interface AbstractFpgaVendorPlugin
config
- Hadoop configurationpublic List<FpgaDevice> discover(int timeout)
AbstractFpgaVendorPlugin
discover
in interface AbstractFpgaVendorPlugin
timeout
- The vendor plugin should return result during this timepublic String getDiagnoseInfo(int timeout)
public boolean diagnose(int timeout)
AbstractFpgaVendorPlugin
diagnose
in interface AbstractFpgaVendorPlugin
timeout
- timeout in millisecondspublic String getFpgaType()
getFpgaType
in interface AbstractFpgaVendorPlugin
public String retrieveIPfilePath(String id, String dstDir, Map<org.apache.hadoop.fs.Path,List<String>> localizedResources)
AbstractFpgaVendorPlugin
retrieveIPfilePath
in interface AbstractFpgaVendorPlugin
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 namespublic boolean configureIP(String ipPath, FpgaDevice device)
configureIP
in interface AbstractFpgaVendorPlugin
ipPath
- the absolute path to the aocx IP filedevice
- Fpga device object which represents the cardCopyright © 2008–2023 Apache Software Foundation. All rights reserved.