Build the binary from a local copy on Linux and macOS
The system compiler must be compatible with CUDA Toolkit if GPU support is required. Refer to the Supported Host Compilers section of the NVIDIA CUDA Compiler Driver NVCC documentation for more details. The required steps to change the system compiler depend on the OS.
Training on GPU requires NVIDIA Driver of version 418.xx or higher.
To build the command-line package from a local copy of the CatBoost repository on Linux and macOS:
libcheader files on macOS and Linux.
Depending on the used OS:
- Linux: Install the appropriate package (for example,
Clone the repository:
git clone https://github.com/catboost/catboost.git
(Optionally) Volta GPU users are advised to precisely set the required NVCC compile flags in the default_nvcc_flags.make.inc configuration file. Removing irrelevant flags speeds up the compilation.
CatBoost may work incorrectly with Independent Thread Scheduling introduced in Volta GPUs when the number of splits for features exceeds 32.
(Optionally) CUDA with compute capability 2.0 users must remove all lines starting with
-gencodefrom the default_nvcc_flags.make.inc configuration file and add the following line instead:
catboost/catboost/appdirectory from the local copy of the CatBoost repository.
Run the following command:
../../ya make -r [optional parameters]
The path to CUDA. This parameter is required to support training on GPU.
Disable CUDA support. This speeds up compilation.
By default, the package is built with CUDA support if CUDA Toolkit is installed.
The directory to output the compiled package to. By default, the current directory is used.