mirror of
https://github.com/NVIDIA/nvbench.git
synced 2026-04-20 06:48:53 +00:00
Add suggestion to create conda environment with recent CMake to build nvbench
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user