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

Build container needs tweaking to install CUDA #372

Closed
ocaisa opened this issue Oct 23, 2023 · 1 comment
Closed

Build container needs tweaking to install CUDA #372

ocaisa opened this issue Oct 23, 2023 · 1 comment

Comments

@ocaisa
Copy link
Member

ocaisa commented Oct 23, 2023

Installing CUDA within a singularity/apptainer container is problematic. I've found that (only within the container) it needs access to /var/log and /usr/local/cuda to install without erroring. It can be resolved by bind mounting these locations:
https://github.com/EESSI/software-layer/pull/368/files#diff-beb8727d0ab9a726d4140464e9af4184ce5e0c167608488e521e622de37fd2f8R32

It could be the read only file system , or it could be a bad check in the installer that decides the user has root capabilities. We have a work around but it would be nice to be able to avoid this.

Unfortunately the installer does not accept --help but using strings I was able to extract a list of (at least some of) the options that the installer accepts (EDIT: I just found https://docs.nvidia.com/cuda/cuda-installation-guide-linux/#advanced-options which actually lists these):

--silent
Setting silent=true
--toolkit
Setting toolkit=true
--driver
Setting driver=true
--samples
Setting samples=true
--kernelobjects
Setting kernelobjects=true
--toolkitpath
Setting toolkitpath=
Updated toolkitpath to: 
--samplespath
Setting samplespath=
Updated samplespath to: 
--defaultroot
--librarypath
Setting defaultpath=
Updated defaultpath to: 
--installpath
Setting globalpath=
Updated globalpath to: 
--extract
Setting extractPath=
--no-man-page
Not installing manpages
--override
Overriding compiler check
--override-driver-check
Overriding driver check
--no-opengl-libs
Adding driver option --no-opengl-files
--no-drm
Adding driver option --no-drm
--run-nvidia-xconfig
Adding driver option --run-nvidia-xconfig
--kernel-module-build-directory
Adding driver long option =
kernel
kernel-open
Unknown value: 
Adding driver option -m=
--kernel-source-path
Adding driver flag --kernel-source-path=
--kernel-output-path
Adding driver flag --kernel-output-path=
--validate-manifest

I can't see anything here that might solve this.

@ocaisa
Copy link
Member Author

ocaisa commented Nov 2, 2023

#368 makes the changes in the EESSI container to allow this, not sure if we should close this issue when that is merged

@ocaisa ocaisa closed this as completed Dec 21, 2023
TopRichard added a commit to TopRichard/bot-software-layer1 that referenced this issue May 24, 2024
…-2.4.2-foss-2022b

{2023.06}[foss/2022b] MDAnalysis V2.4.2
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

1 participant