Download oneDNN source code or clone the repository.
Ensure that all software dependencies are in place and have at least the minimal supported version.
The oneDNN build system is based on CMake. Use
CMAKE_INSTALL_PREFIX
to control the library installation location,CMAKE_BUILD_TYPE
to select between build type (Release
, Debug
, RelWithDebInfo
).See Build Options for detailed description of build-time configuration options.
For the solution to use the Intel C++ Compiler, select the corresponding toolchain using the cmake -T
switch:
You can also use the msbuild
command-line tool directly (here /p:Configuration
selects the build configuration which can be different from the one specified in CMAKE_BUILD_TYPE
, and /m
enables a parallel build):
Run unit tests: