我在 slurm 中找不到 sbtach.c 文件的位置

I can not find the location of the sbtach.c file in slurm

我在本地 PC 上安装了 slurm 以执行一些测试,但我需要 sbatch.c 文件,但我找不到它,我安装了 slurm:

Sudo apt-get install -y slurm-wlm slurm-wlm-doc

您可以在 Github 的 SLURM 源代码中找到它。您正在寻找的文件是这个(记得 select 您的版本标签): https://github.com/SchedMD/slurm/blob/master/src/sbatch/sbatch.c

或者从 SLURM 官方下载中下载包含所有源的包: https://www.schedmd.com/downloads.php

(您要找的文件在src/sbatch/sbatch.c)

您可以使用 apt-filedpkg -S 在 Ubuntu 存储库中查找特定文件。启用所有回购后,您可以尝试通过以下方式找到它:

apt-file search sbatch.c

dpkg -S sbatch.c
dpkg-query: no path found matching pattern *sbatch.c*

但是在这种情况下,如您所见,什么也没有出现。