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 AbstractFpgaVendorPluginconfig - Hadoop configurationpublic List<FpgaDevice> discover(int timeout)
AbstractFpgaVendorPlugindiscover in interface AbstractFpgaVendorPlugintimeout - The vendor plugin should return result during this timepublic String getDiagnoseInfo(int timeout)
public boolean diagnose(int timeout)
AbstractFpgaVendorPlugindiagnose in interface AbstractFpgaVendorPlugintimeout - timeout in millisecondspublic String getFpgaType()
getFpgaType in interface AbstractFpgaVendorPluginpublic String retrieveIPfilePath(String id, String dstDir, Map<org.apache.hadoop.fs.Path,List<String>> localizedResources)
AbstractFpgaVendorPluginretrieveIPfilePath in interface AbstractFpgaVendorPluginid - 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 AbstractFpgaVendorPluginipPath - the absolute path to the aocx IP filedevice - Fpga device object which represents the cardCopyright © 2008–2023 Apache Software Foundation. All rights reserved.