Details
Description
The clients of GpuDiscoverer are very hard to test as they call GpuDiscoverer.getInstance() internally.
For example, writing tests for org.apache.hadoop.yarn.server.nodemanager.containermanager.resourceplugin.gpu.GpuResourcePlugin#getNMResourceInfo is quite hard as the GpuDeviceInformation returned by GpuDiscoverer is not interchangeable as GpuDiscoverer is not mockable since we cannot inject it in tests.
Attachments
Attachments
Issue Links
- is depended upon by
-
YARN-9235 If linux container executor is not set for a GPU cluster GpuResourceHandlerImpl is not initialized and NPE is thrown
- Resolved