Skip to content

Commit d9fe516

Browse files
committed
test
Signed-off-by: Victor Chang <vicchang@nvidia.com>
1 parent 03ac79c commit d9fe516

File tree

5 files changed

+18
-13
lines changed

5 files changed

+18
-13
lines changed

.vscode/launch.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@
930930
},
931931
{
932932
"name": "HOLOSCAN_LOG_LEVEL",
933-
"value": "DEBUG"
933+
"value": "INFO"
934934
}
935935
],
936936
"stopAtEntry": false,
@@ -963,7 +963,7 @@
963963
},
964964
{
965965
"name": "HOLOSCAN_LOG_LEVEL",
966-
"value": "DEBUG"
966+
"value": "INFO"
967967
}
968968
],
969969
"stopAtEntry": false,

applications/distributed/grpc/grpc_endoscopy_tool_tracking/cpp/endoscopy_tool_tracking.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ application:
2323
inputFormats: []
2424
outputFormats: ["screen"]
2525
multifragment: false # default: false, true to run in multi-fragment mode, false otherwise
26-
benchmarking: false # default: false, true to enable Data Flow Benchmarking, false otherwise
26+
benchmarking: true # default: false, true to enable Data Flow Benchmarking, false otherwise
2727

2828
replayer:
2929
basename: "surgical_video"
3030
frame_rate: 0 # as specified in timestamps
3131
repeat: false # default: false
32-
realtime: false # default: true
32+
realtime: true # default: true
3333
count: 0 # default: 0 (no frame count restriction)
3434

3535
format_converter:
@@ -42,7 +42,7 @@ grpc_server:
4242
rpc_timeout: 5
4343

4444
grpc_client:
45-
server_address: localhost:50051
45+
server_address: 10.0.0.2:50051
4646
rpc_timeout: 5
4747
interrupt: true
4848

applications/distributed/ucx/ucx_endoscopy_tool_tracking/cpp/endoscopy_tool_tracking.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ extensions:
2424
replayer:
2525
basename: "surgical_video"
2626
frame_rate: 0 # as specified in timestamps
27-
repeat: true # default: false
28-
realtime: true # default: true
27+
repeat: false # default: false
28+
realtime: false # default: true
2929
count: 0 # default: 0 (no frame count restriction)
3030

3131
format_converter:

applications/distributed/ucx/ucx_endoscopy_tool_tracking/cpp/main.cpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ class VideoInputFragment : public holoscan::Fragment {
4040

4141
auto replayer = make_operator<ops::VideoStreamReplayerOp>(
4242
"replayer",
43-
Arg("allocator", make_resource<RMMAllocator>("video_replayer_allocator")),
4443
from_config("replayer"),
4544
args);
4645

@@ -118,8 +117,7 @@ class VizFragment : public holoscan::Fragment {
118117
from_config("holoviz"),
119118
Arg("width") = width_,
120119
Arg("height") = height_,
121-
Arg("allocator") = visualizer_allocator,
122-
Arg("cuda_stream_pool") = make_resource<CudaStreamPool>("cuda_stream", 0, 0, 0, 1, 5));
120+
Arg("allocator") = visualizer_allocator);
123121
add_operator(visualizer_operator);
124122
}
125123
};
@@ -207,7 +205,13 @@ int main(int argc, char** argv) {
207205
auto app = holoscan::make_application<App>();
208206
app->config(config_path);
209207
app->set_datapath(data_directory);
208+
auto trackers = app->track_distributed();
209+
210210
app->run();
211211

212+
for (const auto& [name, tracker] : trackers) {
213+
std::cout << "Fragment: " << name << std::endl;
214+
tracker->print();
215+
}
212216
return 0;
213217
}

applications/endoscopy_tool_tracking/cpp/main.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* SPDX-FileCopyrightText: Copyright (c) 2022-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3-
* SPDX-License-Identifier: Apache-2.0
2+
* SPDX-FileCopyrightText: Copyright (c) 2022-2024 NVIDIA CORPORATION & AFFILIATES. All rights
3+
* reserved. SPDX-License-Identifier: Apache-2.0
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.
@@ -349,8 +349,9 @@ int main(int argc, char** argv) {
349349

350350
HOLOSCAN_LOG_INFO("Using input data from {}", data_directory);
351351
app->set_datapath(data_directory);
352-
352+
auto tracker = &app->track();
353353
app->run();
354354

355+
tracker->print();
355356
return 0;
356357
}

0 commit comments

Comments
 (0)