Skip to content

Commit

Permalink
Ask for MPI_THREAD_FUNNELED by default
Browse files Browse the repository at this point in the history
  • Loading branch information
mlouhivu committed Jun 27, 2024
1 parent 91f6406 commit e907e13
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hybrid/hybrid-hello/solution/hybrid-hello.f90
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ program hello
integer :: my_id, tid, rc
integer :: provided, required=MPI_THREAD_FUNNELED

! call MPI_Init_thread(required, provided, rc)
call mpi_init(rc)
call MPI_Comm_rank(MPI_COMM_WORLD, my_id, rc)
call MPI_Init_thread(required, provided, rc)
!call MPI_Init(rc)
!call MPI_Query_thread(provided, rc)

call MPI_Query_thread(provided, rc)
call MPI_Comm_rank(MPI_COMM_WORLD, my_id, rc)

!$omp parallel private(tid)
tid = omp_get_thread_num()
Expand Down

0 comments on commit e907e13

Please sign in to comment.