如何在SMPD环境中调用与MPI并行的Fortran子程序

如何在SMPD环境中调用与MPI并行的Fortran子程序,mpi,daemon,subroutine,Mpi,Daemon,Subroutine,我的问题是,在Fortran中使用mpi时,当我试图调用一个简单的子例程时,简单多用途守护进程(SMPD)会出现这种错误: `CreateProcess failed, error 2 unable to start the local smpd manager. CreateProcess failed, error 2 CreateProcess failed, error 2 unable to start the local smpd manage

我的问题是,在Fortran中使用mpi时,当我试图调用一个简单的子例程时,简单多用途守护进程(SMPD)会出现这种错误:

    `CreateProcess failed, error 2
    unable to start the local smpd manager.
    CreateProcess failed, error 2
    CreateProcess failed, error 2
    unable to start the local smpd manager.
    CreateProcess failed, error 2
    unable to start the local smpd manager.
    unable to start the local smpd manager.
    invalid command received, unable to determine the destination: 'cmd=result src=0
    dest=1 tag=9 cmd_tag=9 ctx_key=0 result=SUCCESS '
    invalid command received, unable to determine the destination: 'cmd=result src=0
    dest=1 tag=10 cmd_tag=9 ctx_key=2 result=SUCCESS '
    invalid command received, unable to determine the destination: 'cmd=result src=0
    dest=1 tag=11 cmd_tag=9 ctx_key=1 result=SUCCESS '
    invalid command received, unable to determine the destination: 'cmd=result src=0
    dest=1 tag=12 cmd_tag=9 ctx_key=3 result=SUCCESS '
    mpiexec aborting job...`
当我注释调用行时,代码工作正常,SMPD不会显示任何错误

我要求编译器生成可重入代码,但SMPD仍然给出相同的错误。
你能给我一个解决这个问题的办法吗

你有什么代码可以给我们演示这个问题吗?正如现在提出的那样,至少我甚至不理解这个问题。您是否使用MPI进程生成功能?