-
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
[QNN EP] Make QNN EP a shared library #23120
base: main
Are you sure you want to change the base?
Conversation
…osed by the provider bridge.
…evert this in favor of doing the transpose manually in QNN EP
…entType(), DataTypeImpl::TensorTypeFromONNXEnum()
…tions not available in the provider bridge.
…hat does not need to add new functionality to the provider bridge
…d bug in qnn_configs_helper
…static and dynamic QNN libs)
onnxruntime_add_include_to_target(onnxruntime_providers_qnn onnxruntime_common onnxruntime_framework onnx | ||
onnx_proto protobuf::libprotobuf-lite | ||
flatbuffers::flatbuffers Boost::mp11) | ||
target_link_libraries(onnxruntime_providers_qnn) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line is empty
parser.add_argument( | ||
"--use_qnn", | ||
nargs="?", | ||
const="dynamic_lib", # If provide --use_qnn without an arg, defaults to a dynamic library. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps change this to shared_lib
for consistency?
/// in core/platform/windows/telemetry.h/.cc. In this case, we forward method calls to the | ||
/// ORT Env's telemetry provider. | ||
/// </summary> | ||
class QnnTelemetry { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @ivberg, If you're available, I'd would really appreciate a review of the ETW changes in this PR. Thanks.
Description
--use_qnn
or--use_qnn dynamic_lib
. Generates the following build artifacts:onnxruntime_providers_qnn.dll
andonnxruntime_providers_shared.dll
libonnxruntime_providers_qnn.so
andlibonnxruntime_providers_shared.so
--use_qnn static_lib
. This is primarily for the Android QNN AAR package.Detailed changes
ort_api.h
andort_api.cc
that encapsulates the API provided by ORT in a manner that allows the EP to be built as either a shared or static library.--use_qnn static_lib
.build.py
currently enforces QNN EP to be built as a shared library. Can add support for building a QNN NuGet package with static later if deemed necessary.build.py
enforces QNN EP to be built as a static library. Packaging multiple shared libraries into an Android AAR package is not currently supported due to the added need to also distribute a shared libcpp.so library.Motivation and Context