Deep Neural Network Library (DNNL) includes several header files providing C and C++ APIs for the functionality and one or several libraries depending on how DNNL was built.
File | Description |
---|---|
include/dnnl.h | C header |
include/dnnl.hpp | C++ header |
include/dnnl_types.h | Auxiliary C header |
include/dnnl_config.h | Auxiliary C header |
include/dnnl_version.h | C header with version information |
File | Description |
---|---|
lib/libdnnl.so | DNNL dynamic library |
lib/libdnnl.a | DNNL static library (if built with DNNL_LIBRARY_TYPE=STATIC ) |
File | Description |
---|---|
lib/libdnnl.dylib | DNNL dynamic library |
lib/libdnnl.a | DNNL static library (if built with DNNL_LIBRARY_TYPE=STATIC ) |
File | Description |
---|---|
bin\libdnnl.dll | DNNL dynamic library |
lib\libdnnl.lib | DNNL import library |
The examples below assume that DNNL is installed in the directory defined in the DNNLROOT
environment variable.
LD_LIBRARY_PATH
(Linux) or DYLD_LIBRARY_PATH
(macOS) environment variable or the rpath
mechanism.To link the application from the command line, set up the LIB
and INCLUDE
environment variables to point to the locations of the DNNL headers and libraries.
Refer to the Microsoft Visual Studio documentation on linking the application using MSVS solutions.
PATH
environment variable.