Skip to content

Failing submission to GPU partition in CI run #242

Closed

Description

@laraPPr

All rfm_job.sh fail to be submitted by reframe on the GPU partitions. with the following error.

sbatch: error: Invalid generic resource (gres) specification

However when I go to the Stage directory and run the command that failed the job gets submitted and runs. Their must be something that I'm missing that is set by ReFrame but not in the jobscript of launch command. That causes the job not to get submitted. I've already investigated it a little bit and I can't find what the difference might be.

ReFrame version: 4.7.3 & 4.7.2
Test-suite version: 0.5.1

Activity

  1. added
    bug
    on Feb 18, 2025
  2. boegel commented on Feb 19, 2025

    @boegel
    Contributor

    @laraPPr Can you easily obtain the contents of the job script, and the exact sbatch command that is being used?

  3. laraPPr commented on Feb 19, 2025

    @laraPPr
    CollaboratorAuthor

    I did some further digging and the problem can't be with the job script itself, the test-suite or reframe

    if reframe outside of the CI the error does not occur. And the test-suite runs fine.

    So it is gonna be something that is picked up in the CI environment that causes the error. but I haven't tracked it down yet.

  4. laraPPr commented on Feb 19, 2025

    @laraPPr
    CollaboratorAuthor

    @laraPPr Can you easily obtain the contents of the job script, and the exact sbatch command that is being used?

    Yes you can find the job script in the stage directory and the run command you can find in the logs but the problem is not with either of those.

  5. laraPPr commented on Mar 4, 2025

    @laraPPr
    CollaboratorAuthor
  6. laraPPr commented on Mar 4, 2025

    @laraPPr
    CollaboratorAuthor

    I tried to find what the environment is right before th jobs gets submitted by reframe by adding this to the following file: reframe/reframe/core/schedulers/slurm.py.

    + completed = _run_strict('env > /dodrio/scratch/projects/gadminforever/vsc46128/ReFrame_EESSI_CI/reframe_env.out`)
    

    but than it was complaining that their is no such file or directory named '>'.

    Maybe i should look at what ReFrame purges from the environment when 'purge_environment': True, is set.

  7. laraPPr commented on Mar 4, 2025

    @laraPPr
    CollaboratorAuthor

    I'm able to reproduce it without reframe by doing this

    module --force purge
    cd PATH/TO/STAGEDIR/hortense/gpu_rome_a100_40/default/EESSI_LAMMPS_lj_05f2d3fa
    sbatch --export=NONE --get-user-env=60L --partition=gpu_rome_a100_40 rfm_job.sh
    

    As with reframe it only causes trouble when trying to submit to the GPU and not the CPU partition

  8. laraPPr commented on Mar 4, 2025

    @laraPPr
    CollaboratorAuthor

    sbatch: error: Invalid generic resource (gres) specification
    occurs when the following environment varible is not set:
    export SLURM_CONF=/etc/slurm/slurm.conf_dodrio

  9. laraPPr commented on May 21, 2025

    @laraPPr
    CollaboratorAuthor

    This issue is resolved with #250

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions