JdeRobot / RoboticsApplicationManager

Robotic applications lifecycle management
3 stars 13 forks source link

Implement GPU acceleration in RAM #29

Open ango1994 opened 1 year ago

ango1994 commented 1 year ago

Enable GPU acceleration in the new Robotics Application Manager as in the old manager. DIfferent commands should be launched depending if the GPU acceleration is enabled or not. See the classic manager for more information: https://github.com/JdeRobot/RoboticsAcademy/blob/master/scripts/manager.py

jmplaza commented 1 year ago

Related to https://github.com/JdeRobot/RoboticsAcademy/issues/902. @dpascualhe is also working on refining the support of GPU acceleration from the RADI container, both on Linux user machines and on Windows user machines.

Bhardwaj-Himanshu commented 1 year ago

Hi @ango1994 @jmplaza, (sorry for the ping, but do let me know if it bothers you) I want to start contributing to this issue, just wanted to confirm a few steps related to it.

-after setting the codebase up locally, which files do I need to navigate into to implement the same? -also, if you could provide a slight idea about how to start?

--Some various methods after my little walkthrough suggested usage of CUDA or pytorch!

I know these doubts can sound naive, but yep these do derive from my lack of experience! But I would love to know about this, cause I am very keen into "how we implement hardware usage and can control it, via our code."

ango1994 commented 1 year ago

HI @Bhardwaj-Himanshu check the RAM (Robotics Application Manager). https://github.com/JdeRobot/RoboticsAcademy/blob/master/src/manager/manager.py It's a new implementation of the manager more agnostic to the aplication that is launched. The RAM should implement GPU acceleration as the old manager. https://github.com/JdeRobot/RoboticsAcademy/blob/master/scripts/manager.py

Bhardwaj-Himanshu commented 1 year ago

Ah thanks @ango1994, now this gives me a slight of idea to atleast get on working on that!

Will give it a shot and let you know! Thanks;)

Bhardwaj-Himanshu commented 1 year ago

Hi @ango1994 , If this issue is being still worked on, I would like to state my thinking--

https://github.com/JdeRobot/RoboticsAcademy/blob/b918ce1a73063b0b3aa9388371e33151630dec41/src/manager/manager.py#L195-L199

The highlighted lines in above codebase are from new manager.py script

So,should I try to implement the steps mentioned here below- https://github.com/JdeRobot/RoboticsAcademy/blob/b918ce1a73063b0b3aa9388371e33151630dec41/scripts/manager.py#L66-L82

Do let me know, would be of great help. Thanks