【问题标题】:mpirun: token slots not supportedmpirun:不支持令牌槽
【发布时间】:2015-01-04 06:54:15
【问题描述】:

我尝试运行一个程序:

~/mpich3/bin/mpirun --hostfile hosts_8_12.txt python simulation.py

但我收到此错误:

[mpiexec@pomegranate] HYDU_process_mfile_token (utils/args/args.c:296): token slots not supported at this time
[mpiexec@pomegranate] HYDU_parse_hostfile (utils/args/args.c:343): unable to process token
[mpiexec@pomegranate] mfile_fn (ui/mpich/utils.c:336): error parsing hostfile
[mpiexec@pomegranate] match_arg (utils/args/args.c:152): match handler returned error
[mpiexec@pomegranate] HYDU_parse_array (utils/args/args.c:174): argument matching returned error
[mpiexec@pomegranate] parse_args (ui/mpich/utils.c:1596): error parsing input array
[mpiexec@pomegranate] HYD_uii_mpx_get_parameters (ui/mpich/utils.c:1648): unable to parse user arguments
[mpiexec@pomegranate] main (ui/mpich/mpiexec.c:153): error parsing parameters

这是我的主机文件:

c00 slots=12
c01 slots=12
c02 slots=12
c03 slots=12
c04 slots=12
c05 slots=12
c06 slots=12
c07 slots=12

我正在使用 mpich-3.1.3。当我运行程序而不指定主机文件中的插槽时,它运行良好。您知道问题出在哪里吗?

【问题讨论】:

    标签: mpi hosts mpich slots


    【解决方案1】:

    我相信slots 关键字用于 Open MPI,而不是 MPICH。主机文件是一个非标准的东西,每个实现都以自己的方式指定。对于 MPICH,您可以查看详细信息 here,但简短的版本是您的文件应如下所示:

    c00:12
    c01:12
    c02:12
    c03:12
    c04:12
    c05:12
    c06:12
    c07:12
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-09-28
      • 2013-12-24
      • 2016-02-19
      • 2020-03-07
      • 2016-10-02
      • 1970-01-01
      • 1970-01-01
      • 2018-12-16
      相关资源
      最近更新 更多