Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Amalgamation on iOS #4820

Closed
dongwu92 opened this issue Jan 28, 2017 · 2 comments
Closed

Amalgamation on iOS #4820

dongwu92 opened this issue Jan 28, 2017 · 2 comments

Comments

@dongwu92
Copy link

I generate the mxnet_predict-all.cc and add it to WhatIsThis-iOS project, which throws the errors:
Unknown type name '__m128'
Use of undeclared identifier '_mm_set1_ps'
...
I can find no solution about sse2 on iOS, but what should I do for this?

Environment info

Operating System: OSX

MXNet version: 0.9.3

@piiswrong
Copy link
Contributor

Try adding adding DEFS+=-DMSHADOW_USE_SSE=0 here https://github.com/dmlc/mxnet/blob/master/amalgamation/Makefile#L22

@dongwu92
Copy link
Author

I have added it but the error still exists. I edited the setting in mxnet_predict-all.cc from
/*! \brief whether use SSE */ #ifndef MSHADOW_USE_SSE #define MSHADOW_USE_SSE 1 #endif
to
/*! \brief whether use SSE */ #ifndef MSHADOW_USE_SSE #define MSHADOW_USE_SSE 0 #endif
and compile successfully.

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

No branches or pull requests

2 participants