From 34e3edfb1a6b075a00b49972faada70e4dbf7648 Mon Sep 17 00:00:00 2001 From: Gorkem Ozkaya Date: Thu, 7 Jun 2018 21:51:06 -0700 Subject: [PATCH] Update index.md (#3228) --- doc/jvm/index.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/jvm/index.md b/doc/jvm/index.md index f7bbed991..56e6bc25b 100644 --- a/doc/jvm/index.md +++ b/doc/jvm/index.md @@ -34,6 +34,13 @@ This command will publish the xgboost binaries, the compiled java classes as wel After integrating with Dataframe/Dataset APIs of Spark 2.0, XGBoost4J-Spark only supports compile with Spark 2.x. You can build XGBoost4J-Spark as a component of XGBoost4J by running `mvn package`, and you can specify the version of spark with `mvn -Dspark.version=2.0.0 package`. (To continue working with Spark 1.x, the users are supposed to update pom.xml by modifying the properties like `spark.version`, `scala.version`, and `scala.binary.version`. Users also need to change the implementation by replacing SparkSession with SQLContext and the type of API parameters from Dataset[_] to Dataframe) +#### Enabling OpenMP for Mac OS +If you are on Mac OS and using a compiler that supports OpenMP, you need to go to the file `xgboost/jvm-packages/create_jni.py` and comment out the line +```python +CONFIG["USE_OPENMP"] = "OFF" +``` +in order to get the benefit of multi-threading. + Contents -------- * [Java Overview Tutorial](java_intro.md)