46 "ratelimited-shm-bound",
47 [matcher = std::regex(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) {