oneAPI Deep Neural Network Library (oneDNN)  1.6.0
Performance library for Deep Learning
Build from Source

Download the Source Code

Download oneDNN source code or clone the repository.

git clone https://github.com/oneapi-src/oneDNN.git

Build the Library

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

See Build Options for detailed description of build-time configuration options.

Linux/macOS

Prepare the Build Space

mkdir -p build && cd build

Generate makefile

export CC=aarch64-linux-gnu-gcc
export CXX=aarch64-linux-gnu-g++
cmake .. \
-DCMAKE_SYSTEM_NAME=Linux \
-DCMAKE_SYSTEM_PROCESSOR=AARCH64 \
-DCMAKE_LIBRARY_PATH=/usr/aarch64-linux-gnu/lib \
<extra build options>

Build and Install the Library

Windows

Validate the Build

If the library is built for the host system, you can run unit tests using:

ctest