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

Method prepare

engine/src/core/dflash2.cpp:752–763  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

750}
751
752bool Dflash2Drafter::prepare(const float* taps, std::string& err) {
753 if (!bound_) { err = "dflash2: not bound"; return false; }
754 if (prof_ != nullptr) return true; // the profile runs without graphs
755 const OnDevice on_device(device_);
756 const Clock::time_point t0 = Clock::now();
757 for (int i = 0; i < 8; ++i) h_meta_[i] = i;
758 for (int n = 1; n <= kRows; ++n)
759 if (!capture(n, taps, err)) return false;
760 graph_taps_ = taps;
761 ms_capture = ms_since(t0);
762 return true;
763}
764
765// ---- ring log -----------------------------------------------------------------------------------------------------------------------------------------
766// The ring holds the last 2064 positions of the lineage it was filled for. Resuming a prompt below the highest position written (a repeated or rewound

Callers

nothing calls this directly

Calls 3

ms_sinceFunction · 0.70
nowFunction · 0.50
captureFunction · 0.50

Tested by

no test coverage detected