Community
cancel
Showing results for 
Search instead for 
Did you mean: 
曲__印强
Beginner
183 Views

[-1:12528]ERROR:execvp error on file: C:\Users\ASUS-pc\source\repos\Console2\Console2\x64\Debug\Console2.exe, 拒绝访问。

在调试mpi时出现如下问题

代码

      program main
       include 'mpif.h'
       character* (MPI_MAX_PROCESSOR_NAME) processor_name
       integer myid,numprocs,namelen,rc,ierr
       call MPI_INIT( ierr )
      call MPI_COMM_RANK( MPI_COMM_WORLD, myid, ierr )
       call MPI_COMM_SIZE( MPI_COMM_WORLD, numprocs, ierr )
       call MPI_GET_PROCESSOR_NAME(processor_name, namelen, ierr)
       write(*,10) myid,numprocs,processor_name
 10  FORMAT('Hello World! Process ',I2,' of ',I1,' on ', 20A)
       call MPI_FINALIZE(rc)
       end

结果

[-1:12528]ERROR:execvp error on file: C:\Users\ASUS-pc\source\repos\Console2\Console2\x64\Debug\Console2.exe, 拒绝访问。
[-1:12528]ERROR:execvp error on file: C:\Users\ASUS-pc\source\repos\Console2\Console2\x64\Debug\Console2.exe, 拒绝访问。
[-1:12528]ERROR:execvp error on file: C:\Users\ASUS-pc\source\repos\Console2\Console2\x64\Debug\Console2.exe, 拒绝访问。
[-1:12528]ERROR:execvp error on file: C:\Users\ASUS-pc\source\repos\Console2\Console2\x64\Debug\Console2.exe, 拒绝访问。

0 Kudos
3 Replies
PrasanthD_intel
Moderator
183 Views

Hi,

This forum is English only forum.

We have translated your query into English and this is what we have understood

====================================================================================================

The following problems occur when debugging mpi

     program main
      include 'mpif.h'
      character* (MPI_MAX_PROCESSOR_NAME) processor_name
      integer myid,numprocs,namelen,rc,ierr
      call MPI_INIT( ierr )
     call MPI_COMM_RANK( MPI_COMM_WORLD, myid, ierr )
      call MPI_COMM_SIZE( MPI_COMM_WORLD, numprocs, ierr )
      call MPI_GET_PROCESSOR_NAME(processor_name, namelen, ierr)
      write(*,10) myid,numprocs,processor_name
       10  FORMAT('Hello World! Process ',I2,' of ',I1,' on ', 20A)
      call MPI_FINALIZE(rc)
      end


[-1:12528]ERROR:execvp error on file: C:\Users\ASUS-pc\source\repos\Console2\Console2\x64\Debug\Console2.exe, Access is denied
[-1:12528]ERROR:execvp error on file: C:\Users\ASUS-pc\source\repos\Console2\Console2\x64\Debug\Console2.exe, Access is denied
[-1:12528]ERROR:execvp error on file: C:\Users\ASUS-pc\source\repos\Console2\Console2\x64\Debug\Console2.exe, Access is denied
[-1:12528]ERROR:execvp error on file: C:\Users\ASUS-pc\source\repos\Console2\Console2\x64\Debug\Console2.exe, Access is denied

====================================================================================================
 

We suspect that this error occurs when you don't have enough privileges to run the executable.

Are you the root user in your system? if not check if your account has enough privileges to launch the program on hosts.

Could you try running the executable manually without mpiexec and see if you are able to run it.
Also, try to run mpiexec with -localonly option and see if you can run the program locally.

mpiexec -localonly <Foo.exe>

Once again register your credentials with mpiexec. For more info go through the getting started guide of mpi.

mpiexec -register

Could you please provide the permissions of the file you are trying to execute and the MPI launch command you are using ?

Thanks and regards

Prasanth

PrasanthD_intel
Moderator
183 Views

Hi,

Have you checked the permissions as we have suggested?

let us know if you are facing any issues.

 

Regards

Prasanth

PrasanthD_intel
Moderator
183 Views

Hi,

We are closing thread considering your issue is resolved.

Please raise a new thread for further queries.

Regards

Prasanth

Reply