Follow the Halide official instructions to install (https://github.com/halide/Halide)
Make sure CUDA dev toolkits are installed
https://developer.nvidia.com/nsight-compute
For Windows, the setting is under
Nvidia Control Panel -> Developer -> Manage GPU Performance Counters
- NOTE: Our CMake setup is not copying Halide runtime library into the build binary fold, either copy Halide.dll (for windows) to the demo binary folder or make sure it is linked in system path
Run this command to generate Visual Studio Solution (In Visual Studio Developer PowerShell):
cmake "Visual Studio 16 2019" -Thost=x64 -A x64 -DCMAKE_PREFIX_PATH=/path/to/Halide-install -S . -B build
To build, either directly build with Visual Studio or run:
cmake --build .\build\
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=/path/to/Halide-install -S . -B build
To build run:
cmake --build .\build\