Apache Mesos
Public Member Functions | Static Public Member Functions | List of all members
mesos::internal::slave::NvidiaGpuAllocator Class Reference

#include <allocator.hpp>

Public Member Functions

 NvidiaGpuAllocator ()=delete
 
const std::set< Gpu > & total () const
 
process::Future< std::set< Gpu > > allocate (size_t count)
 
process::Future< Nothingallocate (const std::set< Gpu > &gpus)
 
process::Future< Nothingdeallocate (const std::set< Gpu > &gpus)
 

Static Public Member Functions

static Try< Resourcesresources (const Flags &flags)
 
static Try< NvidiaGpuAllocatorcreate (const Flags &flags, const Resources &resources)
 

Constructor & Destructor Documentation

mesos::internal::slave::NvidiaGpuAllocator::NvidiaGpuAllocator ( )
delete

Member Function Documentation

process::Future<std::set<Gpu> > mesos::internal::slave::NvidiaGpuAllocator::allocate ( size_t  count)
process::Future<Nothing> mesos::internal::slave::NvidiaGpuAllocator::allocate ( const std::set< Gpu > &  gpus)
static Try<NvidiaGpuAllocator> mesos::internal::slave::NvidiaGpuAllocator::create ( const Flags flags,
const Resources resources 
)
static
process::Future<Nothing> mesos::internal::slave::NvidiaGpuAllocator::deallocate ( const std::set< Gpu > &  gpus)
static Try<Resources> mesos::internal::slave::NvidiaGpuAllocator::resources ( const Flags flags)
static
const std::set<Gpu>& mesos::internal::slave::NvidiaGpuAllocator::total ( ) const

The documentation for this class was generated from the following file: