45 "ratelimited-shm-bound",
46 [matcher = std::regex(s)](
DeviceSpec const& spec) ->
bool {
47 return std::regex_match(spec.name, matcher);
52 if (accumulated.sharedMemory >= requestedSharedMemory && offer.timeslices == 0) {
57 if (accumulated.timeslices >= requestedTimeslices && offer.sharedMemory == 0) {
61 if (offer.sharedMemory == 0 && offer.timeslices == 0) {
65 if ((accumulated.sharedMemory + offer.sharedMemory) >= requestedSharedMemory && (accumulated.timeslices + offer.timeslices) >= requestedTimeslices) {