Class FpgaResourceAllocator
java.lang.Object
org.apache.hadoop.yarn.server.nodemanager.containermanager.linux.resources.fpga.FpgaResourceAllocator
This FPGA resource allocator tends to be used by different FPGA vendor's plugin
A "type" parameter is taken into consideration when allocation
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFpgaDevices(String type, List<FpgaDevice> list) assignFpga(String type, long count, Container container, String ipidHash) AssignFpgaResourceAllocator.FpgaAllocationwith preferred IPID, if no, with random FPGAsvoidcleanupAssignFpgas(String requestor) voidrecoverAssignedFpgas(org.apache.hadoop.yarn.api.records.ContainerId containerId) voidupdateFpga(String requestor, FpgaDevice device, String newIPID, String newHash)
-
Constructor Details
-
FpgaResourceAllocator
-
-
Method Details
-
addFpgaDevices
-
updateFpga
-
assignFpga
public FpgaResourceAllocator.FpgaAllocation assignFpga(String type, long count, Container container, String ipidHash) throws ResourceHandlerException AssignFpgaResourceAllocator.FpgaAllocationwith preferred IPID, if no, with random FPGAs- Parameters:
type- vendor plugin supported FPGA device typecount- requested FPGA slot countcontainer- container idipidHash- hash of the localized aocx file- Returns:
- Instance consists two List of allowed and denied
FpgaDevice - Throws:
ResourceHandlerException- When failed to allocate or write state store
-
recoverAssignedFpgas
public void recoverAssignedFpgas(org.apache.hadoop.yarn.api.records.ContainerId containerId) throws ResourceHandlerException - Throws:
ResourceHandlerException
-
cleanupAssignFpgas
-