| 21741 | uint32_t unique = 0; |
| 21742 | uint32_t ranges = 0; |
| 21743 | uint64_t hint_bytes = 0; |
| 21744 | const uint32_t gap = metal_graph_stream_prefill_selected_readahead_gap(); |
| 21745 | if (ok) { |
| 21746 | for (uint64_t i = 0; i < n_ids; i++) { |
| 21747 | const int32_t expert = selected[i]; |
| 21748 | if (expert < 0 || (uint32_t)expert >= DS4_N_EXPERT) { |
| 21749 | fprintf(stderr, |
| 21750 | "ds4: Metal streaming prefill selected expert id %d is outside 0..%u at layer %u\n", |
| 21751 | expert, |
| 21752 | (uint32_t)DS4_N_EXPERT, |
| 21753 | il); |
| 21754 | ok = false; |
| 21755 | break; |
| 21756 | } |
| 21757 | if (seen[expert]) continue; |
| 21758 | seen[expert] = true; |
| 21759 | unique++; |
| 21760 | } |
| 21761 | } |
no test coverage detected