Ngone51 commented on a change in pull request #25047: [WIP][SPARK-27371][CORE]
Support GPU-aware resources scheduling in Standalone
URL: https://github.com/apache/spark/pull/25047#discussion_r304918142
##########
File path: core/src/test/scala/org/apache/spark/SparkContextSuite.scala
##########
@@ -772,7 +772,7 @@ class SparkContextSuite extends SparkFunSuite with
LocalSparkContext with Eventu
.set(DRIVER_RESOURCES_FILE, resourcesFile)
.setMaster("local-cluster[1, 1, 1024]")
.setAppName("test-cluster")
- conf.set(DRIVER_GPU_ID.amountConf, "1")
+ conf.set(DRIVER_GPU_ID.amountConf, "3")
Review comment:
The problem is, what does `sparkContext.resources()` should mean when we get
Standalone resources scheduling in ? discovered resources or assigned resources
? This changed to '3', otherwise it failed on:
`assert(sc.resources.get(GPU).get.addresses === Array("0", "1", "8"))`
at L784.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]