Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

./run_this_example.sh Program received signal SIGSEGV: Segmentation fault - invalid memory reference. #829

Open
xlmi2023 opened this issue Dec 18, 2023 · 1 comment

Comments

@xlmi2023
Copy link

when i run testcase run_this_example.sh,I ran into the following problem:
油气全闪

@danielpeter
Copy link
Contributor

which example did you try to run? the error is related to your MPI installation. maybe, make sure first that you can compile and run a simple, parallel program on your system first:

program test
  use mpi

  implicit none

  integer :: myrank,sizeprocs
  integer :: i,ier

  call MPI_INIT(ier)
  call MPI_COMM_RANK(MPI_COMM_WORLD,myrank,ier)
  call MPI_COMM_SIZE(MPI_COMM_WORLD,sizeprocs,ier)

  do i = 1,sizeprocs
    if (myrank + 1 == i) then
      print *,'hello from process: ',myrank
    endif
    call MPI_BARRIER(MPI_COMM_WORLD,ier)
  enddo

  call MPI_BARRIER(MPI_COMM_WORLD,ier)

  call MPI_FINALIZE(ier)

end program

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants