40#ifndef LM_MAIN_RESOURCEALLOCATOR_H_ 
   41#define LM_MAIN_RESOURCEALLOCATOR_H_ 
  104    static vector<int> parseCpuList(
const string& cpuList);
 
 
float cpuCoresPerReplicate
Definition Globals.cpp:91
A representation for the resources for a given node.
Definition ResourceAllocator.h:62
vector< int > cudaDevices
Definition ResourceAllocator.h:66
int processNumber
Definition ResourceAllocator.h:64
vector< int > cpuCores
Definition ResourceAllocator.h:65
string toString()
Definition ResourceAllocator.cpp:297
int cudaSlotsPerDevice
Definition ResourceAllocator.h:115
int processNumber
Definition ResourceAllocator.h:108
int ** cudaSlots
Definition ResourceAllocator.h:119
int cpuSlotsPerReplicate
Definition ResourceAllocator.h:114
virtual int reserveCpuCore()
Reserve a particular core.
Definition ResourceAllocator.cpp:224
ResourceAllocator(int processNumber, int numberCpuCores, float cpuCoresPerReplicate)
Create a ResourceAllocator.
Definition ResourceAllocator.cpp:58
int ** cpuSlots
Definition ResourceAllocator.h:118
int numberCpuCores
Definition ResourceAllocator.h:109
int reservedCpuCores
Definition ResourceAllocator.h:110
vector< int > availableCpuCores
Definition ResourceAllocator.h:111
virtual ~ResourceAllocator()
Definition ResourceAllocator.cpp:138
static vector< int > getAvailableCpuCores()
Parse CPU affinity list from /proc/self/status.
Definition ResourceAllocator.cpp:339
virtual int getMaxSimultaneousReplicates()
Get maximum number of replicates that can run at a time on the available resources based on cudaDevic...
Definition ResourceAllocator.cpp:161
vector< int > cudaDevices
Definition ResourceAllocator.h:112
int cpuSlotsPerCore
Definition ResourceAllocator.h:113
int cudaSlotsPerReplicate
Definition ResourceAllocator.h:116
virtual void removeReplicate(int replicate)
Remove a replicate from those that are running.
Definition ResourceAllocator.cpp:264
virtual ComputeResources assignReplicate(int replicate)
Assign a replicate to free resources.
Definition ResourceAllocator.cpp:174
pthread_mutex_t mutex
Definition ResourceAllocator.h:107
An Exception class for handling pthread exceptions.
Definition Thread.h:53
Definition CheckpointSignaler.cpp:57
Definition Capsule.cpp:46