Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2374,7 +2374,7 @@ class TaskSchedulerImplSuite extends SparkFunSuite with LocalSparkContext
// 1 executor with 4 GPUS
Seq(true, false).foreach { barrierMode =>
val barrier = if (barrierMode) "barrier" else ""
(1 to 20).foreach { taskNum =>
scala.util.Random.shuffle((1 to 20).toList).take(5).foreach { taskNum =>
val gpuTaskAmount = ResourceAmountUtils.toFractionalResource(ONE_ENTIRE_RESOURCE / taskNum)
test(s"SPARK-45527 TaskResourceProfile with task.gpu.amount=${gpuTaskAmount} can " +
s"restrict $taskNum $barrier tasks run in the same executor") {
Expand Down Expand Up @@ -2423,7 +2423,7 @@ class TaskSchedulerImplSuite extends SparkFunSuite with LocalSparkContext
// 4 executors, each of which has 1 GPU
Seq(true, false).foreach { barrierMode =>
val barrier = if (barrierMode) "barrier" else ""
(1 to 20).foreach { taskNum =>
scala.util.Random.shuffle((1 to 20).toList).take(5).foreach { taskNum =>
val gpuTaskAmount = ResourceAmountUtils.toFractionalResource(ONE_ENTIRE_RESOURCE / taskNum)
test(s"SPARK-45527 TaskResourceProfile with task.gpu.amount=${gpuTaskAmount} can " +
s"restrict $taskNum $barrier tasks run on the different executor") {
Expand Down