Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yurivict opened this issue Aug 28, 2019 · 3 comments
Open

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

yurivict opened this issue Aug 28, 2019 · 3 comments

Comments

@yurivict
Copy link

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,
                                           ~~~~~~~~~~~~~~~~^
@take-cheeze
Copy link

Seems menoh doesn't support mkldnn 1.x yet

@yurivict
Copy link
Author

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

@okdshin
Copy link
Contributor

okdshin commented Aug 29, 2019

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants