| 38 | } |
| 39 | |
| 40 | static 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. |
| 48 | static cpu::CardNodeInput pod() { |