CMU-Robotics-Club / RoboBuggy2

A complete re-write of the old RoboBuggy.
GNU General Public License v3.0
2 stars 0 forks source link

Add CUDA + PyTorch #31

Closed NoRePercussions closed 7 months ago

NoRePercussions commented 8 months ago

Sets up RoboBuggy containers with GPU access, and installs PyTorch as part of the build process.

Requirements

Prod environments must have CUDA 12.0 (other versions are untested) and nvidia container toolkit (installed on Short Circuit).

Dev environment have no requirements. When running setup_dev rather than setup_prod, GPUs will not be accessible, even if one is present.

Potential problems

Right now, it is assumed that prod=gpu and dev=no gpu. This may be a problem with NAND if it does not run a GPU. This can be resolved by creating a new setup that uses docker-compose-no-gpu.yml, or a flag on setup_prod.

GPU testing with setup_dev is disabled right now.

Potential Improvements

Turning the setup_ scripts into a custom build script or make targets could help with the above. Especially since most build steps are very similar, and gpu/no gpu and dev/prod each make independent changes to the setup flow.