Skip to content

Commit

Permalink
update error message in AllReduceParameter (#2997)
Browse files Browse the repository at this point in the history
* update error message in AllReduceParameter
  • Loading branch information
dding3 authored Apr 9, 2020
1 parent 148465f commit 7b29633
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,8 @@ class AllReduceParameter[T: ClassTag](
val blockId = getWeightBlockId(pid)
val localBuffer = BlockManagerWrapper.getLocalOrRemoteBytes(blockId).getOrElse {
throw new RuntimeException(s"Didn't find weight block $blockId in the block " +
s"manager. Did you initialize this AllReduceParameter on every executor?")
s"manager. This is usually because executor crashed. Please check your" +
s"executors' log see the error (usually an OutOfMemory error)")
}
val start = pid * taskSize + math.min(pid, extraSize)
val length = taskSize + (if (pid < extraSize) 1 else 0)
Expand Down

0 comments on commit 7b29633

Please sign in to comment.