What does Node::setState() means?

Please provide the following info (tick the boxes after creating this topic):
Software Version
DRIVE OS 6.0.8.1
DRIVE OS 6.0.6
DRIVE OS 6.0.5
DRIVE OS 6.0.4 (rev. 1)
DRIVE OS 6.0.4 SDK
other

Target Operating System
Linux
QNX
other

Hi, @ VickNV , I have some questions about the state in CGF. what does Node::setState() mean? How many states are in the node? What is this API for? How to use or reset the state in a node? Many thanks.

Compute Graph Framework SDK Reference: Schedule Switching (nvidia.com)

The switching happens in three sequential steps:

  1. The current STM schedule is being stopped. Atm STM can only stop the schedule at hyperepoch boundaries. This implies that stopping an ongoing schedule might take up to the length of the longest hyperepoch of the current schedule.
  2. All nodes are being notified of the new state name (see dw::framework::Node::setState()).

Nodes shouldn’t perform any long running task in this function to make the schedule switch as fast as possible.

  1. The new (or potentially the same) STM schedule is being started.

After the schedule switch has been completed SSM is being notified about it.