|
1 | 1 | #!/bin/bash
|
2 |
| -# Copyright 2022-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved. |
| 2 | +# Copyright 2022-2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved. |
3 | 3 | #
|
4 | 4 | # Redistribution and use in source and binary forms, with or without
|
5 | 5 | # modification, are permitted provided that the following conditions
|
|
220 | 220 | if [ `grep -c "\"trace_mode\":\"triton\"" ./curl.out` != "1" ]; then
|
221 | 221 | RET=1
|
222 | 222 | fi
|
| 223 | +cat ./curl.out |
223 | 224 |
|
224 | 225 | send_inference_requests "client_min.log" 10
|
225 | 226 |
|
@@ -267,9 +268,7 @@ assert_curl_failure "trace_file updated through network protocol expects an erro
|
267 | 268 | if [ `grep -c "\"error\":\"trace file location can not be updated through network protocol\"" ./curl.out` != "1" ]; then
|
268 | 269 | RET=1
|
269 | 270 | fi
|
270 |
| -if [ `grep -c "\"trace_mode\":\"triton\"" ./curl.out` != "1" ]; then |
271 |
| - RET=1 |
272 |
| -fi |
| 271 | +cat ./curl.out |
273 | 272 |
|
274 | 273 | # Use a different name
|
275 | 274 | update_trace_setting "simple" '{"log_frequency":"2"}'
|
|
294 | 293 | if [ `grep -c "\"trace_mode\":\"triton\"" ./curl.out` != "1" ]; then
|
295 | 294 | RET=1
|
296 | 295 | fi
|
| 296 | +cat ./curl.out |
297 | 297 |
|
298 | 298 | send_inference_requests "client_simple.log" 10
|
299 | 299 |
|
|
377 | 377 | if [ `grep -c "\"trace_mode\":\"triton\"" ./curl.out` != "1" ]; then
|
378 | 378 | RET=1
|
379 | 379 | fi
|
| 380 | +cat ./curl.out |
380 | 381 |
|
381 | 382 | # Send requests to simple where trace is explicitly disabled
|
382 | 383 | send_inference_requests "client_update.log" 10
|
|
407 | 408 | if [ `grep -c "\"trace_mode\":\"triton\"" ./curl.out` != "1" ]; then
|
408 | 409 | RET=1
|
409 | 410 | fi
|
| 411 | +cat ./curl.out |
410 | 412 |
|
411 | 413 | # Send requests to simple where now uses global setting
|
412 | 414 | send_inference_requests "client_clear.log" 5
|
|
478 | 480 | if [ `grep -c "\"trace_mode\":\"triton\"" ./curl.out` != "1" ]; then
|
479 | 481 | RET=1
|
480 | 482 | fi
|
| 483 | +cat ./curl.out |
481 | 484 |
|
482 | 485 | # Set trace count
|
483 | 486 | update_global_trace_setting '{"trace_count":"5"}'
|
|
502 | 505 | if [ `grep -c "\"trace_mode\":\"triton\"" ./curl.out` != "1" ]; then
|
503 | 506 | RET=1
|
504 | 507 | fi
|
| 508 | +cat ./curl.out |
505 | 509 |
|
506 | 510 | # Send requests to simple where trace is explicitly disabled
|
507 | 511 | send_inference_requests "client_update.log" 10
|
|
528 | 532 | if [ `grep -c "\"trace_mode\":\"triton\"" ./curl.out` != "1" ]; then
|
529 | 533 | RET=1
|
530 | 534 | fi
|
| 535 | +cat ./curl.out |
531 | 536 |
|
532 | 537 | # Check if the indexed file has been generated when trace count reaches 0
|
533 | 538 | if [ ! -f ./global_count.log.0 ]; then
|
@@ -592,8 +597,6 @@ if [ "$SERVER_PID" == "0" ]; then
|
592 | 597 | exit 1
|
593 | 598 | fi
|
594 | 599 |
|
595 |
| -RET=0 |
596 |
| - |
597 | 600 | set +e
|
598 | 601 |
|
599 | 602 | python $CLIENT_TEST >>$CLIENT_LOG 2>&1
|
|
647 | 650 | if [ `grep -c "\"trace_mode\":\"triton\"" ./curl.out` != "1" ]; then
|
648 | 651 | RET=1
|
649 | 652 | fi
|
| 653 | +cat ./curl.out |
650 | 654 |
|
651 | 655 | set +e
|
652 | 656 | # Send bls requests to make sure simple model is traced
|
|
941 | 945 | if [ `grep -c "\"log_frequency\":" ./curl.out` != "0" ]; then
|
942 | 946 | RET=1
|
943 | 947 | fi
|
| 948 | +cat ./curl.out |
944 | 949 |
|
945 | 950 |
|
946 | 951 | set +e
|
|
1026 | 1031 | if [ `grep -c "\"log_frequency\":" ./curl.out` != "0" ]; then
|
1027 | 1032 | RET=1
|
1028 | 1033 | fi
|
| 1034 | +cat ./curl.out |
1029 | 1035 |
|
1030 | 1036 | set +e
|
1031 | 1037 | # Send bls requests to make sure bls_simple model is NOT traced
|
|
0 commit comments