buildtools/cloog/test/yosr_sync.cloog
Jerome Duval 5873a060ca imported PPL 0.11.1 and CLooG 0.18.0.
* these are dependencies for gcc 4 Graphite engine build.
* CLooG 0.18.0 includes ISL 0.11.1 which is the backend that the build script enables.
* PPL is needed by GCC build even if it isn't the chosen backend.
2013-04-06 15:10:34 +02:00

103 lines
1.3 KiB
Plaintext

# language: C
c
# One parameter : n
1 3
# n 1
1 1 -2
# We want to set the parameter names...
1
# and 'n' is the name of the unique parameter
n
2 # Number of statements: 2.
1
# {i, j | 1<=i<=n-1; i+1<=j<=n}
4 5
# i j n 1
1 1 0 0 -1
1 -1 0 1 -1
1 -1 1 0 -1
1 0 -1 1 0
#-----------------
1 # SYNCHRONIZATION INFOS
1 # POST
# {i, j | 1<=i<=n-1; i+1<=j<=n}
4 5
# i j n 1
1 1 0 0 -1
1 -1 0 1 -1
1 -1 1 0 -1
1 0 -1 1 0
0 # No WAIT
#-----------------
0 0
1
# {i, j, k | 1<=i<=n-1; i+1<=j<=n i+1<=k<=n}
6 6
# i j k n 1
1 1 0 0 0 -1
1 -1 0 0 1 -1
1 -1 1 0 0 -1
1 0 -1 0 1 0
1 -1 0 1 0 -1
1 0 0 -1 1 0
#-----------------
1 # SYNCHRONIZATION INFOS
0 # No POST
1 # One WAIT
1 # First WAIT
# {i, j, k | 1<=i<=n-1; i+1<=j<=n i+1<=k<=n}
6 6
# i j k n 1
1 1 0 0 0 -1
1 -1 0 0 1 -1
1 -1 1 0 0 -1
1 0 -1 0 1 0
1 -1 0 1 0 -1
1 0 0 -1 1 0
1 # Source
#-----------------
0 0
# We want to let CLooG set the iterator names.
0
2
# Scattering functions
1 6
# c1 i j n 1
0 1 -1 0 0 0
1 7
# c1 i j k n 1
0 1 0 0 -1 0 0
1
proc
2
# Scattering functions
3 8
# c1 c2 c3 i j n 1
0 1 0 0 -1 0 0 0
0 0 1 0 0 0 0 0
0 0 0 1 0 0 0 0
3 9
# c1 c2 c3 i j k n 1
0 1 0 0 0 0 -1 0 0
0 0 1 0 0 0 0 0 -1
0 0 0 1 0 0 -1 0 0
0