Apache Mesos
|
#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< Nothing > | allocate (const std::set< Gpu > &gpus) |
process::Future< Nothing > | deallocate (const std::set< Gpu > &gpus) |
Static Public Member Functions | |
static Try< Resources > | resources (const Flags &flags) |
static Try< NvidiaGpuAllocator > | create (const Flags &flags, const Resources &resources) |
|
delete |
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 |
process::Future<Nothing> mesos::internal::slave::NvidiaGpuAllocator::deallocate | ( | const std::set< Gpu > & | gpus | ) |
|
static |
const std::set<Gpu>& mesos::internal::slave::NvidiaGpuAllocator::total | ( | ) | const |