Skip to content

Some modules do not work with srun #169

@jrlagrone

Description

@jrlagrone

A number of modules are setup to generate shell functions to wrap applications that are installed in containers. Srun expects actual executables and does not source things correctly.

Example:

#!/bin/bash
#SBATCH -p dev
#SBATCH -c 1
#SBATCH --mem=4G
#SBATCH -t 0-00:05:00

module purge
module load R/4.3.2

echo "Running"
srun Rscript --vanilla example.R

Results in

slurmstepd: error: execve(): Rscript: No such file or directory
srun: error: c144: task 0: Exited with exit code 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions