Build the binary with CMake
Note
Training on GPU requires NVIDIA Driver of version 418.xx or higher.
Dependencies and requirements
Make sure you have the following installed:
- CMake, version 3.15 or higher
- Python with development headers installed, version 3.6 or higher
- For Linux and Windows - CUDA, version 11.0 or higher
- Conan, most recent versions are preferable
Building steps
-
Clone the repository:
git clone https://github.com/catboost/catboost.git
-
Go to the root directory of the CatBoost repository local copy.
-
Run CMake with the appropriate build type and specifying Python3_ROOT_DIR, e.g.:
cmake ./ -DCMAKE_BUILD_TYPE=Release -DPython3_ROOT_DIR=/Library/Frameworks/Python.framework/Versions/3.10/
-
Build the binary from the generated makefiles:
cmake --build catboost
The output directory for the binary is ./catboost/catboost/app
.