menoh icon indicating copy to clipboard operation
menoh copied to clipboard

error: no type named 'format' in 'mkldnn::memory'

Open yurivict opened this issue 4 years ago • 3 comments

I have mkl-dnn-1.0.1 installed, and clang8 complains:

In file included from /usr/ports/math/menoh/work/menoh-1.1.1-169-gc00e8d5/menoh/composite_backend/backend/mkldnn/memory_cache.cpp:1:
In file included from /usr/ports/math/menoh/work/menoh-1.1.1-169-gc00e8d5/menoh/composite_backend/backend/mkldnn/memory_cache.hpp:10:
/usr/ports/math/menoh/work/menoh-1.1.1-169-gc00e8d5/menoh/composite_backend/backend/mkldnn/memory_conversion.hpp:12:49: error: no type named 'format' in 'mkldnn::memory'
            bool is_data_format(mkldnn::memory::format format);
                                ~~~~~~~~~~~~~~~~^
/usr/ports/math/menoh/work/menoh-1.1.1-169-gc00e8d5/menoh/composite_backend/backend/mkldnn/memory_conversion.hpp:15:29: error: no type named 'format' in 'mkldnn::memory'
            mkldnn::memory::format extract_format(mkldnn::memory const& m);
            ~~~~~~~~~~~~~~~~^
/usr/ports/math/menoh/work/menoh-1.1.1-169-gc00e8d5/menoh/composite_backend/backend/mkldnn/memory_conversion.hpp:25:29: error: no type named 'format' in 'mkldnn::memory'
            mkldnn::memory::format ndims_to_data_memory_format(int ndims);
            ~~~~~~~~~~~~~~~~^
/usr/ports/math/menoh/work/menoh-1.1.1-169-gc00e8d5/menoh/composite_backend/backend/mkldnn/memory_conversion.hpp:26:29: error: no type named 'format' in 'mkldnn::memory'
            mkldnn::memory::format ndims_to_weight_memory_format(int ndims);
            ~~~~~~~~~~~~~~~~^
/usr/ports/math/menoh/work/menoh-1.1.1-169-gc00e8d5/menoh/composite_backend/backend/mkldnn/memory_conversion.hpp:30:60: error: no type named 'format' in 'mkldnn::memory'
                                           mkldnn::memory::format format,
                                           ~~~~~~~~~~~~~~~~^
/usr/ports/math/menoh/work/menoh-1.1.1-169-gc00e8d5/menoh/composite_backend/backend/mkldnn/memory_conversion.hpp:34:60: error: no type named 'format' in 'mkldnn::memory'
                                           mkldnn::memory::format format,
                                           ~~~~~~~~~~~~~~~~^

yurivict avatar Aug 28 '19 06:08 yurivict

Seems menoh doesn't support mkldnn 1.x yet

take-cheeze avatar Aug 29 '19 02:08 take-cheeze

So it can't be installed until it supports it.

yurivict avatar Aug 29 '19 02:08 yurivict

Hi @yurivict. As @take-cheeze said, current menoh doesn't support mkldnn>0.17 . I recommend you to use mkldnn==0.16 because there is known issue about small buffer allocation for 0.17 . Or, you can use chainer-compiler's menoh API. https://github.com/pfnet-research/chainer-compiler/tree/master/menoh It supports latest mkldnn (with Intel's OpenVINO and NGraph).

okdshin avatar Aug 29 '19 02:08 okdshin