For users who are familiar with the GXF development ecosystem (used in Holoscan SDK 0.2), we provide an export feature to leverage native Holoscan operators as GXF codelets to execute in GXF applications and GraphComposer.
Native operators inputs/outputs must be of type
holoscan::gxf::Entity
.A unique GXF extension is currently needed for each native operator to export (operators cannot be bundled in a single extension at this time).
No support for automatically wrapping entities that are not operators at this time.
We demonstrate how to wrap a native C++ holoscan operator as a GXF codelet in the wrap_operator_as_gxf_extension
example on GitHub here.
The
ping_rx_native_op
andping_tx_native_op
folders contain simple implementations of the generic ping tx/rx operators, where the input and output specified inOperator::setup(OperatorSpec& spec)
are of typeholoscan::gxf::Entity
, to be compatible with GXF codelets.The
gxf_extension
folder contains the CMakeLists.txt which is the key interface to wrap the native GXF operators as extensions. The documentation for the inputs and outputs is listed at the top of the WrapOperatorAsGXFExtension.cmake.The
gxf_app
folder shows how to create a GXF application (as documented in the Creating a GXF Application section), using the two extensions generated above, and listing their cmake target name under theEXTENSIONS
argument of thecreate_gxe_application
cmake function.