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

fix:[#1500] allow users to exclude files when using --nvidia #1555

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ToolmanP
Copy link

Resolve #1500

@maalsolami
Copy link

You may need to set a default value for nvidia_exclusion in the defaults section of create (L#57-85) in case the flag is not used to avoid nvidia_exclusion: parameter not set error and ensure that it works only when the --nvidia option is set.
I was able to use it successfully to create a container with Nvidia integration and install ROS noetic in it, which was not possible before due to this error:

dpkg: error processing archive /var/cache/apt/archives/cmake-data_3.16.3-1ubuntu1.20.04.1_all.deb (--unpack):
 unable to make backup link of './usr/share/cmake-3.16/Modules/Compiler/NVIDIA-CUDA.cmake' before installing new version: Invalid cross-device link
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Preparing to unpack .../libboost1.71-dev_1.71.0-6ubuntu6_amd64.deb ...
Unpacking libboost1.71-dev:amd64 (1.71.0-6ubuntu6) ...
dpkg: error processing archive /var/cache/apt/archives/libboost1.71-dev_1.71.0-6ubuntu6_amd64.deb (--unpack):
 unable to make backup link of './usr/include/boost/compute/detail/nvidia_compute_capability.hpp' before installing new version: Invalid cross-device link
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/cmake-data_3.16.3-1ubuntu1.20.04.1_all.deb
 /var/cache/apt/archives/libboost1.71-dev_1.71.0-6ubuntu6_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

@ToolmanP
Copy link
Author

ToolmanP commented Sep 23, 2024

You may need to set a default value for nvidia_exclusion in the defaults section of create (L#57-85) in case the flag is not used to avoid nvidia_exclusion: parameter not set error and ensure that it works only when the --nvidia option is set. I was able to use it successfully to create a container with Nvidia integration and install ROS noetic in it, which was not possible before due to this error:

dpkg: error processing archive /var/cache/apt/archives/cmake-data_3.16.3-1ubuntu1.20.04.1_all.deb (--unpack):
 unable to make backup link of './usr/share/cmake-3.16/Modules/Compiler/NVIDIA-CUDA.cmake' before installing new version: Invalid cross-device link
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Preparing to unpack .../libboost1.71-dev_1.71.0-6ubuntu6_amd64.deb ...
Unpacking libboost1.71-dev:amd64 (1.71.0-6ubuntu6) ...
dpkg: error processing archive /var/cache/apt/archives/libboost1.71-dev_1.71.0-6ubuntu6_amd64.deb (--unpack):
 unable to make backup link of './usr/include/boost/compute/detail/nvidia_compute_capability.hpp' before installing new version: Invalid cross-device link
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/cmake-data_3.16.3-1ubuntu1.20.04.1_all.deb
 /var/cache/apt/archives/libboost1.71-dev_1.71.0-6ubuntu6_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

yeah my bad i fixed this 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
2 participants