【问题标题】:SLURM "srun module load" command exits with errorSLURM“srun module load”命令退出并出现错误
【发布时间】:2021-08-26 22:47:00
【问题描述】:

我正在使用带有 Lmod 的 slurm 集群。我有 2 个节点,我想在两个节点上加载一个模块。当我运行命令时

srun -n2 module load python/3.8.10 我收到了slurmstepd: error: execve(): module: No such file or directory。为什么它不运行module load 命令?而是搜索名称为module 的文件。我怎样才能让它工作?谢谢!

【问题讨论】:

    标签: slurm


    【解决方案1】:

    module 命令是一个 shell 函数,所以它不像常规命令那样工作,因此是No such file or directory。 (试试which module 和type module 你就会明白我的意思了)。

    在任何情况下,您都不需要使用srun 来执行module 命令,只需在运行代码之前在提交脚本中执行module load python/3.8.10(使用srun),新环境将被传播到分配中的所有节点。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-10-02
      • 1970-01-01
      • 2011-06-10
      • 1970-01-01
      • 2016-06-26
      • 2023-03-14
      • 1970-01-01
      相关资源
      最近更新 更多