26 [matcher = std::regex(
s)](
DeviceSpec const& spec) ->
bool {
27 return std::regex_match(spec.name, matcher);
36 [matcher = std::regex(
s)](
DeviceSpec const& spec) ->
bool {
37 return std::regex_match(spec.name, matcher);
46 "ratelimited-shm-bound",
47 [matcher = std::regex(std::string{
s})](
DeviceSpec const& spec) ->
bool {
48 return std::regex_match(spec.
name, matcher);
53 if (accumulated.sharedMemory >= requestedSharedMemory && offer.timeslices == 0) {
58 if (accumulated.timeslices >= requestedTimeslices && offer.sharedMemory == 0) {
62 if (offer.sharedMemory == 0 && offer.timeslices == 0) {
66 if ((accumulated.sharedMemory + offer.sharedMemory) >= requestedSharedMemory && (accumulated.timeslices + offer.timeslices) >= requestedTimeslices) {
78 [matcher = std::regex(
s)](
DeviceSpec const& spec) ->
bool {
79 return std::regex_match(spec.name, matcher);
Timeframe settings Average distance in cm of events merged into Randomize distance around average distance of merged events Simulate correct bunch interactions instead of placing only the average number of events A value[n] sets TFlen for[n] collisions in Number of bunches per trainsort Number of bunch trains Instantaneous interaction rate Do not simulate border Total number of collisions to be placed in the interior of all time Do not select random but walk over array of events in stride steps h Event generator settings h configStandalone Use CPU for GPU Force usage of the specified GPU device no CPU fallback Continue processing after an error s
Defining ITS Vertex explicitly as messageable.
int64_t sharedMemory
How much shared memory it can allocate.
int cpu
How many cores it can use.
std::string name
The name of the associated DataProcessorSpec.
static ResourcePolicy rateLimitedSharedMemoryBoundTask(char const *taskMatcher, int maxMemory, int maxTimeslices)
static ResourcePolicy trivialTask(char const *taskMatcher)
static ResourcePolicy sharedMemoryBoundTask(char const *taskMatcher, int maxMemory)
static ResourcePolicy cpuBoundTask(char const *taskMatcher, int maxCPUs=1)