MCPcopy Create free account
hub / github.com/Niko1221/Strata / cpus_of

Function cpus_of

engine/src/kernels/cpu/card_node_test.cpp:40–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40static std::vector<int> cpus_of(const std::vector<cpu::CardNodeCpu>& m, int node) {
41 std::vector<int> out;
42 for (const auto& c : m)
43 if (c.node == node) out.push_back(c.cpu);
44 return out;
45}
46
47// The RTX 4090 pod's shape: 2 x 32 cores, 128 logical, a 13.6-CPU quota (12 workers), card on node 1, plenty of free memory.
48static cpu::CardNodeInput pod() {

Callers 1

decisionsFunction · 0.85

Calls 1

push_backMethod · 0.80

Tested by

no test coverage detected