Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Ping Simple

This example demonstrates a simple ping application with two operators connected using add_flow().

There are two operators involved in this example:

  1. a transmitter, set to transmit a sequence of integers from 1-10 to it's 'out' port
  2. a receiver that prints the received values to the terminal

C++ Run instructions

  • using deb package install or NGC container:
    /opt/nvidia/holoscan/examples/resources/thread_pool/cpp/ping_simple_thread_pool
  • source (dev container):
    ./run launch # optional: append `install` for install tree
    ./examples/resources/thread_pool/cpp/ping_simple_thread_pool
  • source (local env):
    ${BUILD_OR_INSTALL_DIR}/examples/resources/thread_pool/cpp/ping_simple_thread_pool

Python Run instructions

  • using python wheel:
    # [Prerequisite] Download example .py file below to `APP_DIR`
    # [Optional] Start the virtualenv where holoscan is installed
    python3 <APP_DIR>/ping_simple_thread_pool.py
  • from NGC container:
    python3 /opt/nvidia/holoscan/examples/resources/thread_pool/python/ping_simple_thread_pool.py
  • source (dev container):
    ./run launch # optional: append `install` for install tree
    python3 ./examples/resources/thread_pool/python/ping_simple_thread_pool.py
  • source (local env):
    export PYTHONPATH=${BUILD_OR_INSTALL_DIR}/python/lib
    python3 ${BUILD_OR_INSTALL_DIR}/examples/resources/thread_pool/python/ping_simple_thread_pool.py