Skip to content

GPU runOptions suggestions #113

@an-altosian

Description

@an-altosian

Description of feature

Hi there,

Currently the GPU profile is written as

gpu {
        docker.runOptions       = '-u $(id -u):$(id -g) --gpus all'
        apptainer.runOptions    = '--nv'
        singularity.runOptions  = '--nv'
    }

I suggest to append the GPU related args to the runOptions instead of overwriting them. So, I suggest to change to

    gpu {
        docker.runOptions       = (docker.runOptions ?: '') + ' --gpus all'
        apptainer.runOptions    = (apptainer.runOptions ?: '') + ' --nv'
        singularity.runOptions  = (singularity.runOptions ?: '') + ' --nv'
    }

Best,
Dongze

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions