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

Method gpus

src/common/resources.cpp:2008–2016  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2006
2007
2008Option<double> Resources::gpus() const
2009{
2010 Option<Value::Scalar> value = get<Value::Scalar>("gpus");
2011 if (value.isSome()) {
2012 return value->value();
2013 } else {
2014 return None();
2015 }
2016}
2017
2018
2019Option<Bytes> Resources::mem() const

Callers 2

applyMethod · 0.45
validateGpusFunction · 0.45

Calls 3

NoneClass · 0.85
isSomeMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected