[CGF] Unable to set dependencies in node.json in order to generate Non-sequential Passes

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

Hardware Platform
DRIVE AGX Orin Developer Kit (940-63710-0010-300)
DRIVE AGX Orin Developer Kit (940-63710-0010-200)
DRIVE AGX Orin Developer Kit (940-63710-0010-100)
DRIVE AGX Orin Developer Kit (940-63710-0010-D00)
DRIVE AGX Orin Developer Kit (940-63710-0010-C00)
DRIVE AGX Orin Developer Kit (not sure its number)
other

SDK Manager Version
1.9.3.10904
other

Host Machine Version
native Ubuntu Linux 20.04 Host installed with SDK Manager
native Ubuntu Linux 20.04 Host installed with DRIVE OS Docker Containers
native Ubuntu Linux 18.04 Host installed with DRIVE OS Docker Containers
other

Hello,
I am trying to generate a Node composed of 6 passes:

  • SETUP
  • PROCESS_1
  • PROCESS_2
  • PROCESS_3
  • PROCESS_4
  • TEARDOWN
    such that the process_(1-4) can execute in parallel (they are sending 4 different messages along 4 different output ports).

I followed the procedure described at Compute Graph Framework SDK Reference 5.14 - Non-Sequential Passes, however while i was modifying my node.json by adding the `

passes->dependencies

`voice, as reported in the following:

{
    .
    .
    .
    "parameters": {},
    "passes": [
        {
            "name": "SETUP",
            "processorTypes": [
                "CPU"
            ]
        },
        {
            "name": "PROCESS_1",
            "processorTypes": [
                "CPU"
            ],
        },
        {
            "name": "PROCESS_2",
            "processorTypes": [
                "CPU"
            ],
            "dependencies": [
                "SETUP"
            ]
        },
        {
            "name": "PROCESS_3",
            "processorTypes": [
                "CPU"
            ],
            "dependencies": [
                "SETUP"
            ]
        },
        {
            "name": "PROCESS_4",
            "processorTypes": [
                "CPU"
            ],
            "dependencies": [
                "SETUP"
            ]
        },
        {
            "name": "TEARDOWN",
            "processorTypes": [
                "CPU"
            ]
        }
    ]
}

i got this error by the validate_cgfdescriptors.py, which reported:

✓ /home/nvidia/project/sampleFolder/sample_cgf/app/inputAPINode.node.json
Exception while validating: /home/nvidia/project/sampleFolder/sample_cgf/app/inputAPINode.node.json
Traceback (most recent call last):
  File "/usr/local/driveworks-5.14/tools/schema/validate_cgfdescriptors.py", line 857, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/usr/local/driveworks-5.14/tools/schema/validate_cgfdescriptors.py", line 90, in main
    all_valid &= checkFilesAgainstAdditionalConstraints(
  File "/usr/local/driveworks-5.14/tools/schema/validate_cgfdescriptors.py", line 239, in checkFilesAgainstAdditionalConstraints
    all_valid &= func(path, instance)
  File "/usr/local/driveworks-5.14/tools/schema/validate_cgfdescriptors.py", line 261, in checkFileAgainstAdditionalConstraints
    assert (
AssertionError: To be implemented: check that dependency names are in the collection of previous pass names
root@6.0.8.1-0006-build-linux-sdk:/# 

However the SETUP name is already present as you can see at the beginning of the array.

Do you know what could cause this issue? Is there a particular spelling for reporting the process name correctly? I couldn’t find any example of this kind unfortunately.

Thanks in advance.

This feature is not supported in CGF 5.14.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.