-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathparallel_master_fortran.txt
70 lines (46 loc) · 3.06 KB
/
parallel_master_fortran.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/*
* Copyright (c) 2018-2020, High Performance Computing Architecture and System
* research laboratory at University of North Carolina at Charlotte (HPCAS@UNCC)
* and Lawrence Livermore National Security, LLC.
*
* SPDX-License-Identifier: (BSD-3-Clause)
*/
//For testing purpose, there are several extra empty lines.
//The final version should only contain necessary information.
//This is not a C/C++ code, so there's no required writing style.
//Only two kinds of special lines will be recognized.
//One is starting with "omp", which is the input.
//The other one is starting with "PASS: ", which is the result for validation.
!$omp parallel master private (a, b) private (a, c)
PASS: !$omp parallel master private (a, b, c)
!$OMP PARALLEL MASTER PRIVATE(a, b)
PASS: !$omp parallel master private (a, b)
!$omp parallel master num_threads (3*5+4/(7+10))
PASS: !$omp parallel master num_threads (3*5+4/(7+10))
!$omp parallel master firstprivate (x, y)
PASS: !$omp parallel master firstprivate (x, y)
!$omp parallel master shared (a, b, c[1:10])
PASS: !$omp parallel master shared (a, b, c[1:10])
!$omp parallel master copyin (a[foo(goo(x)):20],a,y)
PASS: !$omp parallel master copyin (a[foo(goo(x)):20], a, y)
!$omp parallel master default (shared)
PASS: !$omp parallel master default (shared)
!$omp parallel master default (none)
PASS: !$omp parallel master default (none)
!$omp parallel master if (a) if (parallel : b) default (firstprivate)
PASS: !$omp parallel master if (a) if (parallel: b) default (firstprivate)
!$omp parallel master proc_bind (master)
PASS: !$omp parallel master proc_bind (master)
!$omp parallel master proc_bind (close) default (private)
PASS: !$omp parallel master proc_bind (close) default (private)
!$omp parallel master proc_bind (spread)
PASS: !$omp parallel master proc_bind (spread)
!$omp parallel master reduction (inscan, + : a, foo(x)) reduction (abc : x, y, z) reduction (task, user_defined_value : x, y, z) reduction (inscan, max : a, foo(x))
PASS: !$omp parallel master reduction (inscan, + : a, foo(x)) reduction (abc : x, y, z) reduction (task, user_defined_value : x, y, z) reduction (inscan, max : a, foo(x))
!$omp parallel master allocate (omp_high_bw_mem_alloc : m, n[1:5]) allocate (no, allo, cator) allocate (user_defined_test : m, n[1:5])
PASS: !$omp parallel master allocate (omp_high_bw_mem_alloc: m, n[1:5]) allocate (no, allo, cator) allocate (user_defined_test: m, n[1:5])
// invalid test without paired validation.
!$omp parallel master private (a[foo(x, goo(x, y)):100], b[1:30], c) num_threads (3*5+4/(7+10)) allocate (omp_user_defined_mem_alloc : m, n[1:5]) allocate (no, allo, cator)
!$omp parallel master private (a, b, c) private (a, b, e) firstprivate (foo(x), y), shared (a, b, c[1:10]) // invalid test without paired validation.
!$omp parallel master private (a[foo(x, goo(x, y)):100], b[1:30], c) firstprivate (foo(x), y), shared (a, b, c[1:10]) num_threads (4)
!$omp parallel master reduction (tasktest : x11, y, z) allocate (user_defined_test : m, n[1:5]) allocate (omp_high_bw_mem_alloc : m, n[1:5]) reduction (inscan, max : a, foo(x))