summaryrefslogtreecommitdiff
path: root/omega/examples/old_test/lu_spmd
diff options
context:
space:
mode:
authordhuth <derickhuth@gmail.com>2014-11-21 13:35:20 -0700
committerdhuth <derickhuth@gmail.com>2014-11-21 13:35:20 -0700
commita1834b22c43c282442b0cb164767e6c877cf0e5b (patch)
treebedc5be7d1bdb8d32c1868caa496a8a1530d8d8a /omega/examples/old_test/lu_spmd
parentded84bb4aec7461738e7b7033d782a518e2c606b (diff)
parenteb9236c5353785472ae132f27e1cfb9f1e4264a5 (diff)
downloadchill-a1834b22c43c282442b0cb164767e6c877cf0e5b.tar.gz
chill-a1834b22c43c282442b0cb164767e6c877cf0e5b.tar.bz2
chill-a1834b22c43c282442b0cb164767e6c877cf0e5b.zip
Merge branch 'master' into doe
Diffstat (limited to 'omega/examples/old_test/lu_spmd')
-rw-r--r--omega/examples/old_test/lu_spmd19
1 files changed, 19 insertions, 0 deletions
diff --git a/omega/examples/old_test/lu_spmd b/omega/examples/old_test/lu_spmd
new file mode 100644
index 0000000..6587ef0
--- /dev/null
+++ b/omega/examples/old_test/lu_spmd
@@ -0,0 +1,19 @@
+symbolic n,lb,ub;
+I1 := {[k,i] : 1 <= k < i <= n && lb <= k <= ub};
+I2 := {[k,i,j] : 1 <= k <= i,j <= n && lb <= j <= ub};
+p := {[k,i] : 1, lb <= k <= ub < n && k < i <= n};
+w := {[k,i,j,k,i] : 1 <= k <= i,j <= n && k < lb = j <= ub};
+
+T1 := {[k,i] -> [k,i,0,0,0,0,0,0]};
+T2 := {[k,i,j] -> [k,i,1,j,0,0,0,0]};
+Tp := {[k,i] -> [k,i,0,0,1,0,0,0]};
+Tw := {[k,i,j,t1,t2] -> [k,i,1,j,-1,t1,t2,0]};
+
+known := {[*,*,*,*,*,*,*,*] : 1 <= lb && ub <= n};
+known2 := {[*,*,*,*,*,*,*,*] : 1 <= lb <= ub <= n};
+
+codegen 0 T1:I1,T2:I2,Tp:p,Tw:w given known;
+codegen 1 T1:I1,T2:I2,Tp:p,Tw:w given known;
+# codegen 2 T1:I1,T2:I2,Tp:p,Tw:w given known;
+# codegen 1 T1:I1,T2:I2,Tp:p,Tw:w given known2;
+# codegen 2 T1:I1,T2:I2,Tp:p,Tw:w given known2;