| 750 | } |
| 751 | |
| 752 | bool 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 |