Skip to content

[Issue]: Incompatible with OneDNN 3+ #4351

@LunNova

Description

@LunNova

Problem Description

migraphx for rocm-6.4.3 only builds with outdated oneDNN versions like v2.7.3.

oneDNN has now reached v3.9 upstream.

oneDNN 2.7.3 is incompatible with CMake 4 and can no longer be built on bleeding edge distros.

migraphx> /build/source/src/targets/cpu/deconvolution.cpp:55:34: error: no type named 'desc' in 'dnnl::deconvolution_forward'
migraphx>    55 |     dnnl::deconvolution_forward::desc
migraphx>       |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
migraphx> /build/source/src/targets/cpu/deconvolution.cpp:62:16: error: excess elements in scalar initializer
migraphx>    62 |         return {dnnl::prop_kind::forward_inference,
migraphx>       |                ^                                  ~
migraphx>    63 |                 dnnl::algorithm::deconvolution_direct,
migraphx>       |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
migraphx>    64 |                 m.at(MIGRAPHX_DNNL_PREFIX(ARG_SRC)),
migraphx>       |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
migraphx>    65 |                 m.at(MIGRAPHX_DNNL_PREFIX(ARG_WEIGHTS)),
migraphx>       |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
migraphx>    66 |                 m.at(MIGRAPHX_DNNL_PREFIX(ARG_DST)),
migraphx>       |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
migraphx>    67 |                 to_dnnl_dims(op.stride),
migraphx>       |                 ~~~~~~~~~~~~~~~~~~~~~~~~
migraphx>    68 |                 to_dnnl_dims(dilation),
migraphx>       |                 ~~~~~~~~~~~~~~~~~~~~~~~
migraphx>    69 |                 to_dnnl_dims(op.padding),
migraphx>       |                 ~~~~~~~~~~~~~~~~~~~~~~~~~
migraphx>    70 |                 to_dnnl_dims(op.padding)};
migraphx>       |                 ~~~~~~~~~~~~~~~~~~~~~~~~~
migraphx> make[2]: Leaving directory '/build/source/build'

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions