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:

  1. CMake, version 3.15 or higher
  2. Python with development headers installed, version 3.6 or higher
  3. For Linux and Windows - CUDA, version 11.0 or higher
  4. Conan, most recent versions are preferable

Building steps

  1. Clone the repository:

    git clone https://github.com/catboost/catboost.git
    
  2. Go to the root directory of the CatBoost repository local copy.

  3. 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/
    
  4. Build the binary from the generated makefiles:

    cmake --build catboost
    

The output directory for the binary is ./catboost/catboost/app.