mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-06-06 00:03:22 +00:00
[TensorRT EP] Use protobuf with debug build on Windows (#20378)
TRT EP implicitly uses oss_parser with debug build on Windows, therefore it should use protobuf rather than protobuf-lite.
This commit is contained in:
parent
745b426c60
commit
a747a00cd3
1 changed files with 7 additions and 2 deletions
|
|
@ -1243,11 +1243,16 @@ def generate_build_tree(
|
|||
"-Donnxruntime_USE_OPENVINO_AUTO=" + ("ON" if args.use_openvino.startswith("AUTO") else "OFF"),
|
||||
]
|
||||
|
||||
# VitisAI and OpenVINO providers currently only support
|
||||
# full_protobuf option. TensorRT provider only requires it if built with oss_parser
|
||||
# VitisAI and OpenVINO providers currently only support full_protobuf option.
|
||||
# TensorRT provider only requires it if built with oss_parser, and
|
||||
# it implicitly uses oss_parser with debug build on Windows.
|
||||
#
|
||||
# Note: oss_parser will support protobuf-lite in TRT 10 GA, so TRT EP will fully
|
||||
# support protobuf-lite then.
|
||||
if (
|
||||
args.use_full_protobuf
|
||||
or (args.use_tensorrt and args.use_tensorrt_oss_parser)
|
||||
or (args.use_tensorrt and is_windows() and "Debug" in args.config)
|
||||
or args.use_openvino
|
||||
or args.use_vitisai
|
||||
or args.gen_doc
|
||||
|
|
|
|||
Loading…
Reference in a new issue