Class GPUDriverFactory
- java.lang.Object
-
- org.apache.flink.externalresource.gpu.GPUDriverFactory
-
- All Implemented Interfaces:
ExternalResourceDriverFactory
public class GPUDriverFactory extends Object implements ExternalResourceDriverFactory
Factory for creatingGPUDriver
.
-
-
Constructor Summary
Constructors Constructor Description GPUDriverFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExternalResourceDriver
createExternalResourceDriver(Configuration config)
Construct the ExternalResourceDriver from configuration.
-
-
-
Method Detail
-
createExternalResourceDriver
public ExternalResourceDriver createExternalResourceDriver(Configuration config) throws Exception
Description copied from interface:ExternalResourceDriverFactory
Construct the ExternalResourceDriver from configuration.- Specified by:
createExternalResourceDriver
in interfaceExternalResourceDriverFactory
- Parameters:
config
- configuration for this external resource- Returns:
- the driver for this external resource
- Throws:
Exception
- if there is something wrong during the creation
-
-