Skip to content

Commit e907e13

Browse files
committed
Ask for MPI_THREAD_FUNNELED by default
1 parent 91f6406 commit e907e13

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

hybrid/hybrid-hello/solution/hybrid-hello.f90

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ program hello
55
integer :: my_id, tid, rc
66
integer :: provided, required=MPI_THREAD_FUNNELED
77

8-
! call MPI_Init_thread(required, provided, rc)
9-
call mpi_init(rc)
10-
call MPI_Comm_rank(MPI_COMM_WORLD, my_id, rc)
8+
call MPI_Init_thread(required, provided, rc)
9+
!call MPI_Init(rc)
10+
!call MPI_Query_thread(provided, rc)
1111

12-
call MPI_Query_thread(provided, rc)
12+
call MPI_Comm_rank(MPI_COMM_WORLD, my_id, rc)
1313

1414
!$omp parallel private(tid)
1515
tid = omp_get_thread_num()

0 commit comments

Comments
 (0)