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

Function pod

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

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.

Source from the content-addressed store, hash-verified

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() {
49 cpu::CardNodeInput in;
50 in.nodes_with_cpus = 2;
51 in.mask = machine(32, 32);
52 in.mems_known = true;
53 in.mems_allowed = {0, 1};
54 in.card_nodes = {1};
55 in.card_node_free_bytes = 100ll << 30;
56 in.pinned_need_bytes = cpu::card_node_pinned_need(131072);
57 in.cpu_quota = 13.6;
58 in.today_workers = 12;
59 return in;
60}
61
62static void decisions() {
63 // two nodes, the card on node 1: restricted to node 1's 64 logical CPUs, the pool keeps the quota's 12 workers

Callers 1

decisionsFunction · 0.85

Calls 2

card_node_pinned_needFunction · 0.85
machineFunction · 0.70

Tested by

no test coverage detected