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

Method prepare

engine/src/core/verify.cpp:6024–6041  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6022}
6023
6024bool Verifier::prepare(int T, bool& no_vram, std::string& err) {
6025 no_vram = false;
6026#if defined(STRATA_GPU_METAL)
6027 (void) T;
6028 (void) err;
6029 return true;
6030#else
6031 if (T < 1 || T > max_t_) { err = "verify: window size out of range"; return false; }
6032 if (next_ != nullptr || lb_ > 0) return true;
6033 const OnDevice on_device(device_);
6034 refresh_ar();
6035 if ((ar_off_ ? exec_nr_[sel_long_][T] : exec_[sel_long_][T]) != nullptr) return true;
6036 capture_oom_ = false;
6037 if (capture(T, err)) return true;
6038 no_vram = capture_oom_;
6039 return false;
6040#endif
6041}
6042
6043bool Verifier::stage_batch(const int* rows, int S, int hbase, const int32_t* tokens, const int64_t* pos,
6044 std::string& err) {

Callers 8

beginMethod · 0.45
mainFunction · 0.45
apiFunction · 0.45
syncWorkspaceFunction · 0.45
searchWorkspaceFunction · 0.45
ensureDbFunction · 0.45
recallFunction · 0.45
forgetWorkspaceFunction · 0.45

Calls 1

captureFunction · 0.50

Tested by 1

mainFunction · 0.36