-
Notifications
You must be signed in to change notification settings - Fork 0
Getting Started
eantcal edited this page Jul 7, 2026
·
2 revisions
nuNN requires:
- CMake 3.14 or newer
- a C++20 compiler
- Git access during first configure, because Eigen, nlohmann/json, and GoogleTest are fetched with CMake
FetchContent
On Windows, Visual Studio 2022 or newer is recommended.
cmake -S . -B build
cmake --build build --config Release
ctest --test-dir build -C ReleaseTo skip tests:
cmake -S . -B build -DNUNN_BUILD_TESTS=OFFOpenCL support is enabled by default at configure time:
cmake -S . -B build -DNUNN_ENABLE_OPENCL=ONIf ArrayFire/OpenCL is found, MlpMatrixNN can use the OpenCL backend. If it is not found, ComputeBackend::Auto falls back to Eigen/CPU.
On Windows, the helper script assumes the standard ArrayFire install location:
.\build-opencl.ps1
.\build-opencl.ps1 -Target ocr_test
.\build-opencl.ps1 -ArrayFireRoot "C:\Program Files\ArrayFire\v3"Windows packages install command-line tools and demos under:
<install-root>\bin
The installer also provides Start Menu shortcuts for:
- Nunn OCR Test
- Nunn Tic Tac Toe
- Nunn Developer Command Prompt
- Run Nunn Unit Tests
- README and NEWS
On Linux/macOS packages install:
nunn-dev-shell.shnunn-run-tests.sh
These scripts place the package bin directory on PATH, making examples such as mnist_test, xor_test, nunn_tests, and net2json easy to launch.