Replies: 3 comments 8 replies
-
@snnn Do you have any suggestions on big-endian support ? |
Beta Was this translation helpful? Give feedback.
8 replies
-
@tianleiwu @snnn @skottmckay @edgchen1 any thoughts on this discussion ? |
Beta Was this translation helpful? Give feedback.
0 replies
-
If there a use case where you'd want/need to run a minimal build (reduced binary size) on AIX? That's the only setup where an ORT format model is expected to be used. If not, making the static assert a runtime check may be all that's needed. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Actually i attempted the build of onnxruntime on AIX which is BIG endian, the build process was failing because of a static assert ..
./build.sh --config RelWithDebInfo --build_shared_lib
[ 22%] Building CXX object CMakeFiles/onnxruntime_session.dir/ONNX/onnxruntime/onnxruntime/core/session/inference_session.cc.o
In file included from /ONNX/onnxruntime/cmake/external/flatbuffers/include/flatbuffers/flatbuffers.h:20,
from /ONNX/onnxruntime/onnxruntime/core/flatbuffers/schema/ort.fbs.h:7,
from /ONNX/onnxruntime/onnxruntime/core/framework/session_state_flatbuffers_utils.h:9, |
from /ONNX/onnxruntime/onnxruntime/core/session/inference_session.cc:28: |
/ONNX/onnxruntime/onnxruntime/core/session/inference_session.cc: In member function 'onnxruntime::common::Status onnxruntime::InferenceSession::LoadOrtModel(std::function<onnxruntime::|
common::Status()>)': |
/ONNX/onnxruntime/cmake/external/flatbuffers/include/flatbuffers/base.h:127:40: error: static assertion failed: ORT format only supports little-endian machines |
#define FLATBUFFERS_LITTLEENDIAN 0 |
^ |
/ONNX/onnxruntime/onnxruntime/core/session/inference_session.cc:1014:17: note: in expansion of macro 'FLATBUFFERS_LITTLEENDIAN' |
static_assert(FLATBUFFERS_LITTLEENDIAN, "ORT format only supports little-endian machines"); <=== |
^~~~~~~~~~~~~~~~~~~~~~~~ |
make: 1254-004 The error code from the last command is 1. |
Stop.
looking at the code it is for storing the models in 'ort' format, can some one help me understand more on this check,
it seems FLATBUFFERS already supported on Big Endian. Also is there any way in the build where i can exclude this
'ort' format support ?.
make: 1254-004 The error code from the last command is 2.
Beta Was this translation helpful? Give feedback.
All reactions