| 1 |
! { dg-do compile } |
| 2 |
! { dg-additional-options "-fdump-tree-original" } |
| 3 |
|
| 4 |
use omp_lib |
| 5 |
implicit none |
| 6 |
integer :: q, x,y,z |
| 7 |
|
| 8 |
!$omp parallel & |
| 9 |
!$omp& allocate(omp_low_lat_mem_alloc : x) & |
| 10 |
!$omp& allocate(omp_cgroup_mem_alloc : y) & |
| 11 |
!$omp& allocate(omp_pteam_mem_alloc : z) & |
| 12 |
!$omp& firstprivate(q, x,y,z) |
| 13 |
!$omp end parallel |
| 14 |
|
| 15 |
!$omp parallel & |
| 16 |
!$omp& allocate(align ( 64 ), allocator(omp_default_mem_alloc) : x) & |
| 17 |
!$omp& allocate(allocator(omp_large_cap_mem_alloc) : y) & |
| 18 |
!$omp& allocate(allocator ( omp_high_bw_mem_alloc ) , align ( 32 ) : z) & |
| 19 |
!$omp& allocate(align (16 ): q) & |
| 20 |
!$omp& firstprivate(q, x,y,z) |
| 21 |
!$omp end parallel |
| 22 |
end |
| 23 |
|
| 24 |
! { dg-final { scan-tree-dump-times "#pragma omp parallel firstprivate\\(q\\) firstprivate\\(x\\) firstprivate\\(y\\) firstprivate\\(z\\) allocate\\(allocator\\(5\\):x\\) allocate\\(allocator\\(6\\):y\\) allocate\\(allocator\\(7\\):z\\)" 1 "original" } } |
| 25 |
! { dg-final { scan-tree-dump-times "#pragma omp parallel firstprivate\\(q\\) firstprivate\\(x\\) firstprivate\\(y\\) firstprivate\\(z\\) allocate\\(allocator\\(1\\),align\\(64\\):x\\) allocate\\(allocator\\(2\\):y\\) allocate\\(allocator\\(4\\),align\\(32\\):z\\) allocate\\(align\\(16\\):q\\)" 1 "original" } } |