Skip to content

[Bug]: A default of 0 GPUs should be possible #8513

@marianne013

Description

@marianne013

Search before creating an issue

  • I have searched existing issues and confirmed this is not a duplicate

Bug Description

We have set/Resources/Computing/CEDefaults/NumberOfGPUsin the Configuration, as we have a maximum of one or two test queues with GPUs (and none on the pre-prod servers).
This results in the following errors:

2026-04-13T15:02:36,534211Z WorkloadManagement/SiteDirectorLz INFO: Getting GPUs from /Resources/Computing/CEDefaults/NumberOfGPUs
2026-04-13T15:02:36,534314Z WorkloadManagement/SiteDirectorLz ERROR: Could not find NumberOfGPUs: missing siteName or gridCE or queue. Returning '0'

Steps to Reproduce

Install DIRAC v9.0.20 and set /Resources/Computing/CEDefaults/NumberOfGPUs = 0
Error appears in SiteDirector log.

Expected Behavior

A sensible default should be possible without triggering an error.

Actual Behavior

See above

Environment

Vanilla DIRAC 9.0.20

Relevant Log Output

See above

Additional Context

Simon says: The code logic looks like the default option will always be picked if the default value is not set to zero. And it it is set to zero, it triggers an error. Would it not make more sense to check the specific cases first and then only use the default if nothing specific found ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions