1.23
2.0
acw/focus-triggers
main
test-branch
|
Last change
on this file since f8f3bec was 7b92a9d, checked in by Manchun Zheng <zmanchun@…>, 11 years ago |
|
make model builder inserts $elaborate_rectangular_domain automatically for $for and $parfor;
fixed MPI/CUDA transformers so that they won't insert $elaborate calls;
added library functions for supporting $elaborate_rectangular_domain;
cleaned examples and tests.
git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@2500 fb995dde-84ed-4084-dfe6-e5aef3e2452c
|
-
Property mode
set to
100644
|
|
File size:
272 bytes
|
| Line | |
|---|
| 1 | #include <stdio.h>
|
|---|
| 2 | #include <civlc.cvh>
|
|---|
| 3 |
|
|---|
| 4 | $input int X;
|
|---|
| 5 | $assume(1 <= X && X <= 2);
|
|---|
| 6 |
|
|---|
| 7 | void proc(int id){
|
|---|
| 8 | printf("hello, I'm process %d\n", id);
|
|---|
| 9 | }
|
|---|
| 10 |
|
|---|
| 11 | int main(void) {
|
|---|
| 12 | // (0 .. X-1) is elaborated implicity before $parfor
|
|---|
| 13 | $parfor(int i: 0 .. X-1)
|
|---|
| 14 | proc(i);
|
|---|
| 15 | return 0;
|
|---|
| 16 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.