debug: add full-step sync to isolate hanging GPU operation
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -792,7 +792,10 @@ impl FusedTrainingCtx {
|
||||
&self.stream,
|
||||
).map_err(|e| anyhow::anyhow!("PER seg_tree_update: {e}"))?;
|
||||
|
||||
eprintln!("FUSED_DIAG: step {} — PER update done", self.steps_since_varmap_sync);
|
||||
eprintln!("FUSED_DIAG: step {} — PER update done, syncing full step", self.steps_since_varmap_sync);
|
||||
self.trainer.stream().synchronize()
|
||||
.map_err(|e| anyhow::anyhow!("post-step sync: {e}"))?;
|
||||
eprintln!("FUSED_DIAG: step {} — full step GPU sync complete", self.steps_since_varmap_sync);
|
||||
// Bookkeeping.
|
||||
agent.fused_post_step_gpu_bookkeeping()
|
||||
.map_err(|e| anyhow::anyhow!("Fused GPU bookkeeping: {e}"))?;
|
||||
|
||||
Reference in New Issue
Block a user