A simple inference engine. An excuse to learn C++ really.
Requirements:
- CMake 3.11 or better; 3.14+ highly recommended.
- A C++26 compatible compiler (tested with Clang 20 and GCC 14).
- Git
- Doxygen
- OpenMP (for CPU) (
brew install libompon Mac)
To use clang: just export these before you run cmake:
export CC=clang
export CXX=clang++
To configure:
cmake -S . -B build
Add -GNinja if you have Ninja.
To build:
cmake --build build
To test (--target can be written as -t in CMake 3.15+):
cmake --build build --target test
To build docs (requires Doxygen, output in build/docs/html):
cmake --build build --target docs
To use an IDE, such as Xcode:
cmake -S . -B xbuild -GXcode
cmake --open xbuild
The CMakeLists show off several useful design patterns for CMake.