Skip to content

Commit

Permalink
restoring src/command_line_parser.cc after rebase on main
Browse files Browse the repository at this point in the history
  • Loading branch information
oandreeva-nv committed Jun 27, 2023
1 parent 9418150 commit 1cbc24a
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/command_line_parser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -434,14 +434,16 @@ TritonParser::SetupOptions()
#endif // TRITON_ENABLE_HTTP

#if defined(TRITON_ENABLE_GRPC)
grpc_options_.push_back({OPTION_ALLOW_GRPC, "allow-grpc", Option::ArgBool,
"Allow the server to listen for GRPC requests."});
grpc_options_.push_back(
{OPTION_ALLOW_GRPC, "allow-grpc", Option::ArgBool,
"Allow the server to listen for GRPC requests."});
grpc_options_.push_back(
{OPTION_GRPC_ADDRESS, "grpc-address", Option::ArgStr,
"The address for the grpc server to binds to. Default is 0.0.0.0"});
grpc_options_.push_back({OPTION_GRPC_PORT, "grpc-port", Option::ArgInt,
"The port for the server to listen on for GRPC "
"requests. Default is 8001."});
grpc_options_.push_back(
{OPTION_GRPC_PORT, "grpc-port", Option::ArgInt,
"The port for the server to listen on for GRPC "
"requests. Default is 8001."});
grpc_options_.push_back(
{OPTION_REUSE_GRPC_PORT, "reuse-grpc-port", Option::ArgBool,
"Allow multiple servers to listen on the same GRPC port when every "
Expand Down Expand Up @@ -2052,8 +2054,7 @@ TritonParser::SetTritonTraceArgs(
bool trace_log_frequency_present)
{
for (const auto& mode_setting :
lparams
.trace_config_map_[std::to_string(TRACE_MODE_TRITON)]) {
lparams.trace_config_map_[std::to_string(TRACE_MODE_TRITON)]) {
if (mode_setting.first == "file") {
if (trace_filepath_present) {
std::cerr << "Warning: Overriding deprecated '--trace-file' "
Expand Down

0 comments on commit 1cbc24a

Please sign in to comment.