We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91f6406 commit e907e13Copy full SHA for e907e13
hybrid/hybrid-hello/solution/hybrid-hello.f90
@@ -5,11 +5,11 @@ program hello
5
integer :: my_id, tid, rc
6
integer :: provided, required=MPI_THREAD_FUNNELED
7
8
- ! call MPI_Init_thread(required, provided, rc)
9
- call mpi_init(rc)
10
- 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)
11
12
- call MPI_Query_thread(provided, rc)
+ call MPI_Comm_rank(MPI_COMM_WORLD, my_id, rc)
13
14
!$omp parallel private(tid)
15
tid = omp_get_thread_num()
0 commit comments