Copy CMake parameter from dmlc-core. (#4948)
This commit is contained in:
parent
a78d4e7aa8
commit
9fc681001a
@ -37,6 +37,12 @@ option(RABIT_MOCK "Build rabit with mock" OFF)
|
|||||||
option(USE_CUDA "Build with GPU acceleration" OFF)
|
option(USE_CUDA "Build with GPU acceleration" OFF)
|
||||||
option(USE_NCCL "Build with NCCL to enable distributed GPU support." OFF)
|
option(USE_NCCL "Build with NCCL to enable distributed GPU support." OFF)
|
||||||
option(BUILD_WITH_SHARED_NCCL "Build with shared NCCL library." OFF)
|
option(BUILD_WITH_SHARED_NCCL "Build with shared NCCL library." OFF)
|
||||||
|
|
||||||
|
## Copied From dmlc
|
||||||
|
option(USE_HDFS "Build with HDFS support" OFF)
|
||||||
|
option(USE_AZURE "Build with AZURE support" OFF)
|
||||||
|
option(USE_S3 "Build with S3 support" OFF)
|
||||||
|
|
||||||
set(GPU_COMPUTE_VER "" CACHE STRING
|
set(GPU_COMPUTE_VER "" CACHE STRING
|
||||||
"Semicolon separated list of compute versions to be built against, e.g. '35;61'")
|
"Semicolon separated list of compute versions to be built against, e.g. '35;61'")
|
||||||
if (BUILD_WITH_SHARED_NCCL AND (NOT USE_NCCL))
|
if (BUILD_WITH_SHARED_NCCL AND (NOT USE_NCCL))
|
||||||
|
|||||||
@ -72,8 +72,10 @@ Our goal is to build the shared library:
|
|||||||
|
|
||||||
The minimal building requirement is
|
The minimal building requirement is
|
||||||
|
|
||||||
- A recent C++ compiler supporting C++11 (g++-4.8 or higher)
|
- A recent C++ compiler supporting C++11 (g++-5.0 or higher)
|
||||||
- CMake 3.2 or higher
|
- CMake 3.3 or higher (3.12 for building with CUDA)
|
||||||
|
|
||||||
|
For a list of CMake options, see ``#-- Options`` in CMakeLists.txt on top of source tree.
|
||||||
|
|
||||||
Building on Ubuntu/Debian
|
Building on Ubuntu/Debian
|
||||||
=========================
|
=========================
|
||||||
|
|||||||
@ -20,7 +20,7 @@ Installation
|
|||||||
Installation from source
|
Installation from source
|
||||||
========================
|
========================
|
||||||
|
|
||||||
Building XGBoost4J using Maven requires Maven 3 or newer, Java 7+ and CMake 3.2+ for compiling the JNI bindings.
|
Building XGBoost4J using Maven requires Maven 3 or newer, Java 7+ and CMake 3.3+ for compiling the JNI bindings.
|
||||||
|
|
||||||
Before you install XGBoost4J, you need to define environment variable ``JAVA_HOME`` as your JDK directory to ensure that your compiler can find ``jni.h`` correctly, since XGBoost4J relies on JNI to implement the interaction between the JVM and native libraries.
|
Before you install XGBoost4J, you need to define environment variable ``JAVA_HOME`` as your JDK directory to ensure that your compiler can find ``jni.h`` correctly, since XGBoost4J relies on JNI to implement the interaction between the JVM and native libraries.
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user