NECVEPlugin, NvidiaGPUPluginForRuntimeV2public interface DevicePlugin
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Set<Device> |
getDevices() |
Called when update node resource.
|
DeviceRegisterRequest |
getRegisterRequestInfo() |
Called first when device plugin framework wants to register.
|
DeviceRuntimeSpec |
onDevicesAllocated(java.util.Set<Device> allocatedDevices,
YarnRuntimeType yarnRuntime) |
Asking how these devices should be prepared/used
before/when container launch.
|
void |
onDevicesReleased(java.util.Set<Device> releasedDevices) |
Called after device released.
|
DeviceRegisterRequest getRegisterRequestInfo() throws java.lang.Exception
DeviceRegisterRequestjava.lang.Exceptionjava.util.Set<Device> getDevices() throws java.lang.Exception
Device, TreeSet recommendedjava.lang.ExceptionDeviceRuntimeSpec onDevicesAllocated(java.util.Set<Device> allocatedDevices, YarnRuntimeType yarnRuntime) throws java.lang.Exception
VolumeSpec to let the
framework to create volume before running container.allocatedDevices - A set of allocated Device.yarnRuntime - Indicate which runtime YARN will use
Could be RUNTIME_DEFAULT or RUNTIME_DOCKER
in DeviceRuntimeSpec constants. The default means YARN's
non-docker container runtime is used. The docker means YARN's
docker container runtime is used.DeviceRuntimeSpec description about environment,
VolumeSpec, MountVolumeSpec. etcjava.lang.Exceptionvoid onDevicesReleased(java.util.Set<Device> releasedDevices) throws java.lang.Exception
releasedDevices - A set of released devicesjava.lang.ExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.