Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KR260 Perception node: ros2 acceleration list only shows image_proc #66

Open
mohammedrafi-sk opened this issue Jul 12, 2022 · 4 comments

Comments

@mohammedrafi-sk
Copy link
Contributor

mohammedrafi-sk commented Jul 12, 2022

I followed the build for perception targeting kr260 as mentioned here

While testing on board, ros2 acceleration list only shows image_proc.

root@kria:~# ros2 acceleration list
                        Accelerator          Accel_type                            Base           Base_type      #slots(PL+AIE)         Active_slot

accelerated_doublevadd_publisher            XRT_FLATaccelerated_doublevadd_publisher            XRT_FLAT               (0+0)                  -1
                      image_proc            XRT_FLAT                      image_proc            XRT_FLAT               (0+0)                  -1
                k26-starter-kits            XRT_FLAT                k26-starter-kits            XRT_FLAT               (0+0)                   0
  offloaded_doublevadd_publisher            XRT_FLAT  offloaded_doublevadd_publisher            XRT_FLAT               (0+0)                  -1

I can see the streamline and integrated dtbo, bin and xclbin files in the ros2_ws, but ros2 acceleration list is not listing them even after restarting the dfx_mgr

Workaround:

  • Create folders image_proc_streamlined and image_proc_integrated in the /lib/firmware/xilinx
  • Copy the dtbo, bin and xclbin files into the respective folders
  • Restart dfx_mgr, Now ros2 acceleration list shows all the accelerators
@vmayoral
Copy link
Contributor

This is documented in prior examples, see https://xilinx.github.io/KRS/sphinx/build/html/docs/examples/3_offloading_ros2_publisher.html. It might indeed be worth adding this if to perception tutorial if you bumped into it:

# restart the daemon that manages the acceleration kernels
$ ros2 acceleration stop; ros2 acceleration start

@mohammedrafi-sk
Copy link
Contributor Author

Hi @vmayoral

I restarted the daemon, But only image_proc appears in the ros2 acceleration list. Even after the board reboot, only image_proc appears in the list.

The only way I could get the image_proc_streamlined and image_proc_integrated is with the workaround mentioned above

@vmayoral
Copy link
Contributor

vmayoral commented Jul 18, 2022 via email

@jasvinderkhurana
Copy link
Collaborator

@mohammedrafi-sk, I hope this issue is resolved by the latest steps shall I close the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants