@InterfaceAudience.Private @InterfaceStability.Unstable public class GpuDiscoverer extends Object
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
GpuDiscoverer() |
Modifier and Type | Method and Description |
---|---|
List<GpuDevice> |
getGpusUsableByYarn()
Get list of GPU devices usable by YARN.
|
void |
initialize(org.apache.hadoop.conf.Configuration config) |
public List<GpuDevice> getGpusUsableByYarn() throws org.apache.hadoop.yarn.exceptions.YarnException
org.apache.hadoop.yarn.exceptions.YarnException
- when any issue happenspublic void initialize(org.apache.hadoop.conf.Configuration config) throws org.apache.hadoop.yarn.exceptions.YarnException
org.apache.hadoop.yarn.exceptions.YarnException
Copyright © 2008–2019 Apache Software Foundation. All rights reserved.