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 ( )

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 
process::Future<Nothing> mesos::internal::slave::NvidiaGpuAllocator::deallocate ( const std::set< Gpu > &  gpus)
static Try<Resources> mesos::internal::slave::NvidiaGpuAllocator::resources ( const Flags flags)
const std::set<Gpu>& mesos::internal::slave::NvidiaGpuAllocator::total ( ) const

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