From 55ab1c6a22b007342dc4b6005fdb073585915918 Mon Sep 17 00:00:00 2001 From: CodingCat Date: Fri, 18 Mar 2016 10:34:35 -0400 Subject: [PATCH] adjust numWorkers for test --- .../test/scala/ml/dmlc/xgboost4j/scala/spark/XGBoostSuite.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jvm-packages/xgboost4j-spark/src/test/scala/ml/dmlc/xgboost4j/scala/spark/XGBoostSuite.scala b/jvm-packages/xgboost4j-spark/src/test/scala/ml/dmlc/xgboost4j/scala/spark/XGBoostSuite.scala index 96abe9946e12..6f4e98aa3d21 100644 --- a/jvm-packages/xgboost4j-spark/src/test/scala/ml/dmlc/xgboost4j/scala/spark/XGBoostSuite.scala +++ b/jvm-packages/xgboost4j-spark/src/test/scala/ml/dmlc/xgboost4j/scala/spark/XGBoostSuite.scala @@ -35,7 +35,7 @@ import ml.dmlc.xgboost4j.scala.{Booster, DMatrix, EvalTrait} class XGBoostSuite extends FunSuite with BeforeAndAfter { private implicit var sc: SparkContext = null - private val numWorkers = 4 + private val numWorkers = Runtime.getRuntime().availableProcessors() private class EvalError extends EvalTrait {