串行没问题,并行报无可执行文件,,大神求助



  • 使用hello.c文件测试没问题,运行算例出现无可执行文件
    困扰许久,不知怎么解决,,(因为这个 我把系统都重搞了一编)

    zc7565@chun:~/MPI/openmpi-4.0.1/examples$ mpirun -np 2 hello_c
    Hello, world, I am 0 of 2, (Open MPI v4.0.1, package: Open MPI chun@RedPea Distribution, ident: 4.0.1, repo rev: v4.0.1, Mar 26, 2019, 106)
    Hello, world, I am 1 of 2, (Open MPI v4.0.1, package: Open MPI chun@RedPea Distribution, ident: 4.0.1, repo rev: v4.0.1, Mar 26, 2019, 106)
    
    
    Decomposing mesh region0
    
    Create mesh
    
    Calculating distribution of cells
    Selecting decompositionMethod simple
    
    Finished decomposition in 0 s
    
    Calculating original mesh data
    
    Distributing cells to processors
    
    Distributing faces to processors
    
    Distributing points to processors
    
    Constructing processor meshes
    
    Processor 0
        Number of cells = 1134
        Number of faces shared with processor 1 = 47
        Number of processor patches = 1
        Number of processor faces = 47
        Number of boundary faces = 2381
    
    Processor 1
        Number of cells = 1134
        Number of faces shared with processor 0 = 47
        Number of processor patches = 1
        Number of processor faces = 47
        Number of boundary faces = 2363
    
    Number of processor faces = 47
    Max number of cells = 1134 (0% above average 1134)
    Max number of processor patches = 1 (0% above average 1)
    Max number of faces between processors = 47 (0% above average 47)
    
    Time = 0
    
    Processor 0: field transfer
    Processor 1: field transfer
    
    End
    
    zc7565@chun:~/OpenFOAM/zc7565-dev/run/DM$ mpirun –np 2 interFoam –parallel > log--------------------------------------------------------------------------
    mpirun was unable to find the specified executable file, and therefore
    did not launch the job.  This error was first reported for process
    rank 0; it may have occurred for other processes as well.
    
    NOTE: A common cause for this error is misspelling a mpirun command
          line parameter option (remember that mpirun interprets the first
          unrecognized command line token as the executable).
    
    Node:       chun
    Executable: –np
    
    

  • OpenFOAM教授

    mpirun 把 -np 当成程序名了,你的横线写错了, 应该为 -



  • @wwzhao 谢谢拉 困扰了我这么久 还一直以为是 环境变量的问题呢


Log in to reply