THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
Page properties | |||||
---|---|---|---|---|---|
|
Status
Current state: Accepted
Discussion thread: http://apache-flink-mailing-list-archive.1008284.n3.nabble.com/DISCUSS-FLIP-108-Add-GPU-support-in-Flink-td38286.html
...
|
...
|
Please keep the discussion on the mailing list rather than commenting on the wiki (wiki discussions get unwieldy fast).
...
Code Block | ||||
---|---|---|---|---|
| ||||
public interface RuntimeContext { /** * Get the specific external resource information by the resourceName. */ <T extends ExternalResourceInfo> Set<T> Set<ExternalResourceInfo> getExternalResourceInfos(String resourceName, Class<T> externalResourceType); } |
For GPU resource, we introduce the following configuration options:
...
Code Block | ||||
---|---|---|---|---|
| ||||
public interface ExternalResourceDriverFactory {
/**
* Construct the ExternalResourceDriver from configuration.
*/
ExternalResourceDriver createExternalResourceDriver(Congiuration config);
}
public interface ExternalResourceDriver {
/**
* Retrieve the information of the external resources according to the amount.
*/
Set<? extends ExternalResourceInfo> retrieveResourceInfo(long amount);
}
public interface ExternalResourceInfo {
String getProperty(String key);
Collection<String> getKeys();
} |
Guarantee the required GPU resources are accessible to task executors
...