Skip to content

Build container needs tweaking to install CUDA #372

Description

@ocaisa

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions