yikf commented on code in PR #13115:
URL: https://github.com/apache/gluten/pull/13115#discussion_r4269016375


##########
gluten-core/src/main/scala/org/apache/spark/util/SparkResourceUtil.scala:
##########
@@ -75,6 +75,21 @@ object SparkResourceUtil extends Logging {
     cores
   }
 
+  def getDriverCores(conf: SparkConf): Int = {
+    val master = conf.get("spark.master")
+
+    def convertToInt(threads: String): Int = {
+      if (threads == "*") Runtime.getRuntime.availableProcessors() else 
threads.toInt
+    }

Review Comment:
   Will be supported by a separate PR, see: 
https://github.com/apache/gluten/pull/13115#discussion_r4264827673



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to