Files
oneDNN/scripts
Kassen, Andrew 661738c582 tests: verbose converter: read stdout in a timely manner
Reads stdout from the benchdnn subprocess as it becomes available to
prevent running out of memory in the buffer.
2025-10-01 21:10:21 -07:00
..
2025-04-09 21:04:18 -07:00
2025-08-27 17:52:51 -07:00

Scripts

Generating debug header

generate_dnnl_debug.py generates the oneDNN debug header and source files with enum to string mapping. Each time a new tag is added to the API, this script should be executed to re-generate the debug header and relevant source code.

Usage

# Generate dnnl_config.h
$ (mkdir -p build && cd build && cmake -DONEDNN_BUILD_GRAPH=OFF ..)

# Generate types.xml
# CastXML can be found at https://github.com/CastXML/CastXML
$ castxml --castxml-cc-gnu-c clang --castxml-output=1 -Iinclude -Ibuild/include include/oneapi/dnnl/dnnl_types.h -o types.xml

# run generate_dnnl_debug.py
$ ./scripts/generate_dnnl_debug.py types.xml

Generating format tags

generate_format_tags.py generates C++ API tags based on C API tags. Each time a new tag is added to the C API, this script should be executed to add this tag to the C++ API.

Usage

$ ./scripts/generate_format_tags.py

Verbose converter

See verbose_converter/README.md