| 6022 | } |
| 6023 | |
| 6024 | bool 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 | |
| 6043 | bool Verifier::stage_batch(const int* rows, int S, int hbase, const int32_t* tokens, const int64_t* pos, |
| 6044 | std::string& err) { |