add some todo Message

This commit is contained in:
genghaozhe
2024-05-17 10:55:28 +00:00
parent 013690a86b
commit 3d625ca836
4 changed files with 15 additions and 7 deletions

View File

@@ -125,7 +125,7 @@ class GeminiManager:
self._async_works[chunk].wait()
del self._async_works[chunk]
else:
non_prefetched_chunks.append(chunk)
non_prefetched_chunks.append(chunk) # 没在之前prefetch过现在要prefetch的chunk
return tuple(non_prefetched_chunks)
def add_work(self, chunk: Chunk, work: dist.Work):
@@ -154,6 +154,7 @@ class GeminiManager:
def _record_warmup_chunks_order(self, chunks: Tuple[Chunk, ...], record_anyway: bool = False) -> None:
self._compute_idx += 1
# TODO(haze188): _compute_list 记录块的访问顺序
if self._warmup and (self._placement_policy.need_mem_stats or record_anyway):
self._compute_list.append(chunks)