MCPcopy Create free account
hub / github.com/apache/mesos / gpus

Method gpus

src/v1/resources.cpp:1989–1997  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1987
1988
1989Option<double> Resources::gpus() const
1990{
1991 Option<Value::Scalar> value = get<Value::Scalar>("gpus");
1992 if (value.isSome()) {
1993 return value->value();
1994 } else {
1995 return None();
1996 }
1997}
1998
1999
2000Option<Bytes> Resources::mem() const

Callers 8

TEST_FFunction · 0.45
launchExecutorProcessMethod · 0.45
updateMethod · 0.45
enumerateGpusFunction · 0.45
enumerateGpuResourcesFunction · 0.45
applyMethod · 0.45
SlaveMethod · 0.45
updateTotalMethod · 0.45

Calls 3

NoneClass · 0.85
isSomeMethod · 0.45
valueMethod · 0.45

Tested by 1

TEST_FFunction · 0.36