YARN-9398. Fixed javadoc errors for FPGA related java files.
Contributed by Peter Bacsko
This commit is contained in:
parent
399563fec6
commit
f2b862cac6
|
@ -42,11 +42,16 @@ public interface AbstractFpgaVendorPlugin {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check vendor's toolchain and required environment
|
* Check vendor's toolchain and required environment
|
||||||
|
* @param conf Hadoop configuration
|
||||||
|
* @return true if the initialization was successful
|
||||||
* */
|
* */
|
||||||
boolean initPlugin(Configuration conf);
|
boolean initPlugin(Configuration conf);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Diagnose the devices using vendor toolchain but no need to parse device information
|
* Diagnose the devices using vendor toolchain but no need to parse device information
|
||||||
|
*
|
||||||
|
* @param timeout timeout in milliseconds
|
||||||
|
* @return true if the diagnostics was successful
|
||||||
* */
|
* */
|
||||||
boolean diagnose(int timeout);
|
boolean diagnose(int timeout);
|
||||||
|
|
||||||
|
@ -60,6 +65,8 @@ public interface AbstractFpgaVendorPlugin {
|
||||||
/**
|
/**
|
||||||
* Since all vendor plugins share a {@link org.apache.hadoop.yarn.server.nodemanager.containermanager.linux.resources.fpga.FpgaResourceAllocator}
|
* Since all vendor plugins share a {@link org.apache.hadoop.yarn.server.nodemanager.containermanager.linux.resources.fpga.FpgaResourceAllocator}
|
||||||
* which distinguish FPGA devices by type. Vendor plugin must report this.
|
* which distinguish FPGA devices by type. Vendor plugin must report this.
|
||||||
|
*
|
||||||
|
* @return the type of FPGA plugin represented as a string
|
||||||
* */
|
* */
|
||||||
String getFpgaType();
|
String getFpgaType();
|
||||||
|
|
||||||
|
|
|
@ -114,8 +114,11 @@ public class FpgaDiscoverer {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* get avialable devices minor numbers from toolchain or static configuration
|
* Get available devices minor numbers from toolchain or static configuration.
|
||||||
* */
|
*
|
||||||
|
* @return the list of FPGA devices
|
||||||
|
* @throws ResourceHandlerException if there's any error during discovery
|
||||||
|
**/
|
||||||
public List<FpgaResourceAllocator.FpgaDevice> discover()
|
public List<FpgaResourceAllocator.FpgaDevice> discover()
|
||||||
throws ResourceHandlerException {
|
throws ResourceHandlerException {
|
||||||
List<FpgaResourceAllocator.FpgaDevice> list;
|
List<FpgaResourceAllocator.FpgaDevice> list;
|
||||||
|
|
|
@ -153,7 +153,7 @@ public class IntelFpgaOpenclPlugin implements AbstractFpgaVendorPlugin {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Helper class to run aocl diagnose & determine major/minor numbers.
|
* Helper class to run aocl diagnose & determine major/minor numbers.
|
||||||
*/
|
*/
|
||||||
public static class InnerShellExecutor {
|
public static class InnerShellExecutor {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue