Add suggestion to create conda environment with recent CMake to build nvbench

This commit is contained in:
Oleksandr Pavlyk
2025-07-21 12:55:58 -05:00
parent e589518376
commit 9ab642cf69

View File

@@ -6,6 +6,15 @@ This package provides Python API to CUDA Kernel Benchmarking Library `NVBench`.
### Build `NVBench` project
Since `nvbench` requires a rather new version of CMake (>=3.30.4), either build CMake from sources, or create a conda environment with a recent version of CMake, using
```
conda create -n build_env --yes cmake ninja
conda activate build_env
```
Now switch to python folder, configure and install NVBench library, and install the package in editable mode:
```
cd nvbench/python
cmake -B nvbench_build --preset nvbench-ci -S $(pwd)/.. -DCMAKE_CUDA_COMPILER=/usr/local/cuda/bin/nvcc -DNVBench_ENABLE_EXAMPLES=OFF -DCMAKE_INSTALL_PREFIX=$(pwd)/nvbench_install