tune: measure collectives as the exchange -- per-rank operands and instances, device.p2p measured before declare, tune requests carrying their instance

This commit is contained in:
Dustin Ewan authored and StillDeadcode committed 2026-10-25 10:30:52 +01:00
1 parent d0c44cf5a3
commit e9555d2bc1
7 files changed
+339 -101

No files matched your search

+7
View File
@@ -504,6 +504,13 @@ public:
Geometry geom;
std::string geom_key;
const RadKernelInfo* info = nullptr;
/* The instance init() produced for this instantiation, null for a kernel with no init.
* A collective's launch cannot be formed without it: the peer bundle -- the scratch, the
* flags and the sequence counters, published to every rank and made peer-accessible at
* init -- is what makes the exchange addressable, and RadArgs carries no other route to
* it. The instance belongs to the rank this Program was declared for (Program::ctx), and
* the Registry that made it must outlive the launch (spec §1, §15). */
void* instance = nullptr;
};
std::vector<TuneRequest> tune_requests;