You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
warning(sprintf("Failed to parse cgroups v2 %s: %s", sQuote(name), sQuote(value0)))
917
+
integer(0L)
918
+
})
919
+
920
+
## Sanity checks
921
+
max_cores<- maxCores()
922
+
if (any(value<0L|value>=max_cores)) {
923
+
warning(sprintf("[INTERNAL]: Will ignore the cgroups v2 CPU set, because it contains one or more CPU indices that is out of range [0,%d]: %s", max_cores-1L, value0))
924
+
value<- integer(0L)
925
+
}
926
+
927
+
if (any(duplicated(value))) {
928
+
warning(sprintf("[INTERNAL]: Detected and dropped duplicated CPU indices in the cgroups v2 CPU set: %s", value0))
929
+
value<- unique(value)
930
+
}
931
+
932
+
cpuset<-value
933
+
934
+
## Should never happen, but just in case
935
+
stop_if_not(length(cpuset) <=max_cores)
936
+
937
+
.cache[[name]] <<-cpuset
938
+
939
+
cpuset
940
+
}
941
+
})
942
+
943
+
861
944
# @return A non-negative numeric.
862
945
# If cgroups is not in use, or could not be queried, NA_real_ is returned.
0 commit comments