-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[Build] QNN EP build : implicit conversion loses integer precision #17778
Comments
Thanks for reporting @john-dance. It looks like this an architecture with a 32-bit I also went ahead and created a draft PR that properly casts uint64/int64 to size_t in the locations you listed. Can you please try to compile with the PR's branch?
|
@adrianlizarraga - Thanks for reaching out. The build target is armabi-v7a, so it is a 32-bit target. Your draft handles most of the issues, but a few remain. As an aside, I previously didn't have an issue with conv.cc so either these were changes post 1.16.0 or changes in your diff. src/onnxruntime/core/providers/xnnpack/nn/conv.cc:71:65: warning: implicit conversion loses integer precision: 'const int64_t' (aka 'const long long') to 'size_t' (aka 'unsigned int') [-Wshorten-64-to-32] |
Describe the issue
When building with use_qnn (clang, targeting Android), several files in the QNN Execution Provider sources use size_t and unit64_t interchangeably. Clang disagrees with that.
base_op_builder.cc - this one is a simple fix, just change line 212 to use auto
simple_op_builder.cc
qnn_backend_manager.cc
The text was updated successfully, but these errors were encountered: