Skip to content

Commit

Permalink
Count backward eps in numEps hint. (#23)
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Rudenko <[email protected]>

Signed-off-by: Peter Rudenko <[email protected]>
  • Loading branch information
petro-rudenko authored Sep 22, 2022
1 parent fb18bc5 commit 493d6b0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ class UcxShuffleTransport(var ucxShuffleConf: UcxShuffleConf = null, var executo
}

val numEndpoints = ucxShuffleConf.numWorkers *
ucxShuffleConf.getSparkConf.getInt("spark.executor.instances", 1)
ucxShuffleConf.getSparkConf.getInt("spark.executor.instances", 1) *
ucxShuffleConf.numListenerThreads // Each listener thread creates backward endpoint
logInfo(s"Creating UCX context with an estimated number of endpoints: $numEndpoints")

val params = new UcpParams().requestAmFeature().setMtWorkersShared(true).setEstimatedNumEps(numEndpoints)
Expand Down

0 comments on commit 493d6b0

Please sign in to comment.