28
H. Murai et al.
{
5
func_a();
}
#pragma xmp task on p[2:2]
{
func_b();
10 }
XcalableMP Fortran
!$xmp nodes p(4)
!$xmp task on p(1:2)
call func_a()
5 !$xmp end task
!$xmp task on p(3:4)
call func_b()
!$xmp end task
In the above example, the two tasks cannot be executed in parallel because the
on clauses must be evaluated by all of the executing nodes (Fig. 20).
Fig. 20 Example of task construct (2)
Précédent

- 36/265

Suivant