Skip to content

ResourceRequirements

#include <xalgospp/scheduling/task.hh>
struct ResourceRequirements

Defined in src/lib/xalgospp/scheduling/task.hh:39

A representation of resource availability and concurrency tokens for task throttling.

Name Kind Owner
memory_intensity variable Declared here
requires_gpu variable Declared here
custom_slots variable Declared here
Return Name Description
std::size_t memory_intensity A memory usage footprint multiplier for calculating memory intensity.
bool requires_gpu Whether host/device bound.
std::size_t custom_slots Additional resources like IO slots.

std::size_t memory_intensity { 1 }

Defined in src/lib/xalgospp/scheduling/task.hh:47

A memory usage footprint multiplier for calculating memory intensity.

The value is an integer multiplier (best estimate) for the memory usage of this Task as a multiple of the input data size in bytes. E.g., a value of 8 requires memory use equal to 8x the input data size.


bool requires_gpu { false }

Defined in src/lib/xalgospp/scheduling/task.hh:48

Whether host/device bound.


std::size_t custom_slots { 0 }

Defined in src/lib/xalgospp/scheduling/task.hh:49

Additional resources like IO slots.