Xilinx / KRS

The Kria Robotics Stack (KRS) is a ROS 2 superset for industry, an integrated set of robot libraries and utilities to accelerate the development, maintenance and commercialization of industrial-grade robotic solutions while using adaptive computing.
https://Xilinx.github.io/KRS/
Other
48 stars 18 forks source link

"colcon acceleration hls" command hangs for me #75

Closed verderog closed 1 year ago

verderog commented 1 year ago

What is the normal operation of colcon acceleration hls --run --synthesis-report vadd_publisher? I'm following the examples here and execute this command. It seems to hang indefinitely. I'd expect my CPU to indicate it's busy processing, but that does not seem to be the case. I tried enabling the --verbose flag, but don't see any additional info.

Here's what I'm seeing returned when I execute it:

root@0d1a39c20a4a:/krs_ws# colcon acceleration hls --verbose --run --synthesis-report vadd_publisher
Found Tcl script "project_vadd_publisher.tcl" for package: vadd_publisher
Executing /krs_ws/build-kr260-ubuntu/vadd_publisher/project_vadd_publisher.tcl

Here's what I see when I follow the log/latest/logger_all.log

~/projects/xilinx/kr260/dev/krs_ws/log$ tail -f latest/logger_all.log
[0.155s] DEBUG:colcon:Command line arguments: ['/usr/bin/colcon', 'acceleration', 'hls', '--verbose', '--run', '--synthesis-report', 'vadd_publisher']
[0.155s] DEBUG:colcon:Parsed command line arguments: Namespace(log_base=None, log_level=None, verb_name='acceleration', subverb_name='hls', verb_parser=<colcon_mixin.mixin.mixin_argument.MixinArgumentDecorator object at 0x7ff1d8239570>, verb_extension=<colcon_hardware_acceleration.subverb.hls.HLSSubverb object at 0x7ff1d8b3ff70>, main=<bound method HLSSubverb.main of <colcon_hardware_acceleration.subverb.hls.HLSSubverb object at 0x7ff1d8b3ff70>>, package_name='vadd_publisher', verbose=True, summary=False, run=True, silent=False, synthesis_report=True, mixin_files=None, mixin=None, mixin_verb=('acceleration', 'hls'))

Nothing else seems to occur. I've let it run for about 15-20 minutes and do not observe any change. I'd expect my CPU load averages to be impacted if Vitis was processing HLS, but they're not showing anything out of what appears to be an idle state.

Any idea of why it might be hanging and what I should check?

UPDATE: I let the operation run overnight and there was no change or any further output.

verderog commented 1 year ago

I believe I'm running into this issue: Xilinx Issue #76585. I'll post an update and close this issue out if that turns out to be the case.

verderog commented 1 year ago

After I installed libtinfo-dev and libtinfo5 into my Docker image as recommended in the Xilinx issue linked above, I was able to successfully run the colcon acceleration hls --run --synthesis-report vadd_publisher command.