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

add cuda support to images #126

Merged
merged 26 commits into from
Jul 14, 2022
Merged

add cuda support to images #126

merged 26 commits into from
Jul 14, 2022

Conversation

tfoote
Copy link
Collaborator

@tfoote tfoote commented Mar 12, 2021

Currently a draft proof of concept. This will be revised to be more generic. But this should help with visiblity.

@tfoote tfoote self-assigned this Mar 12, 2021
@codecov
Copy link

codecov bot commented Mar 12, 2021

Codecov Report

Merging #126 (21336f9) into master (4f9f6d7) will decrease coverage by 2.93%.
The diff coverage is 31.57%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #126      +/-   ##
==========================================
- Coverage   82.72%   79.78%   -2.94%     
==========================================
  Files           7        7              
  Lines         625      663      +38     
==========================================
+ Hits          517      529      +12     
- Misses        108      134      +26     
Impacted Files Coverage Δ
src/rocker/nvidia_extension.py 74.38% <31.57%> (-19.60%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4f9f6d7...21336f9. Read the comment docs.

woensug-choi and others added 15 commits July 7, 2022 16:40
Signed-off-by: Tully Foote <tfoote@osrfoundation.org>
Signed-off-by: Tully Foote <tfoote@osrfoundation.org>
Signed-off-by: Tully Foote <tfoote@osrfoundation.org>
Signed-off-by: Tully Foote <tfoote@osrfoundation.org>
Signed-off-by: Tully Foote <tfoote@osrfoundation.org>
Signed-off-by: Tully Foote <tfoote@osrfoundation.org>
Signed-off-by: Tully Foote <tfoote@osrfoundation.org>
Signed-off-by: Tully Foote <tfoote@osrfoundation.org>
Signed-off-by: Tully Foote <tfoote@osrfoundation.org>
@tfoote tfoote mentioned this pull request Jul 8, 2022
They are very slow but I think that's going to be the nature of them for this capability. It takes some 9GB of space. That won't be quick any way you slice it.

Signed-off-by: Tully Foote <tfoote@osrfoundation.org>
@woensug-choi
Copy link
Contributor

I've tried with and without nvidia-cuda-dev installation block. Both worked for me. No need to include nvidia-cuda-dev for pre-caching purpose.

Signed-off-by: Tully Foote <tfoote@osrfoundation.org>
Signed-off-by: Tully Foote <tfoote@osrfoundation.org>
cuda_dev is in another package which is available from the system installer

Signed-off-by: Tully Foote <tfoote@osrfoundation.org>
@tfoote
Copy link
Collaborator Author

tfoote commented Jul 12, 2022

Great thanks for the testing. I cleaned that stanza out of the Dockerfile. And I tweaked the name to reflect that it's just Cuda now not cuda-dev. And I tried a fix for the test to get it to pass on presumably non-nvidia hardware in CI.

@tfoote tfoote marked this pull request as ready for review July 12, 2022 06:56
Signed-off-by: Tully Foote <tfoote@osrfoundation.org>
Signed-off-by: Tully Foote <tfoote@osrfoundation.org>
Signed-off-by: Tully Foote <tfoote@osrfoundation.org>
Signed-off-by: Tully Foote <tfoote@osrfoundation.org>
Signed-off-by: Tully Foote <tfoote@osrfoundation.org>
Signed-off-by: Tully Foote <tfoote@osrfoundation.org>
@woensug-choi
Copy link
Contributor

817461e includes all that I needed. Now, the image has nvcc and all other bin files for the development environment of the Cuda library. Tested with the multibeam sonar https://field-robotics-lab.github.io/dave.doc/contents/dave_sensors/Multibeam-Forward-Looking-Sonar/

@tfoote tfoote merged commit 6b5eae2 into master Jul 14, 2022
@tfoote tfoote deleted the cuda branch July 14, 2022 23:33
woensug-choi added a commit to HonuRobotics/dockwater that referenced this pull request Jul 20, 2022
@woensug-choi
Copy link
Contributor

Something happend??? I don't see cuda flag in main branch anymore...

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

Successfully merging this pull request may close these issues.

2 participants