source:
CIVL/examples/opencl/2.14/openSimp.cvl
| Last change on this file was ea777aa, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 206 bytes | |
| Rev | Line | |
|---|---|---|
| [cc87898] | 1 | int func() |
| 2 | { | |
| 3 | return 4; | |
| 4 | } | |
| 5 | ||
| 6 | int main(int argc, char** argv) | |
| 7 | { | |
| 8 | int global = func(); | |
| [5693398] | 9 | //int input[global]; |
| [cc87898] | 10 | int input[global]; |
| 11 | ||
| 12 | for(int i = 0; i < global; i++) | |
| 13 | { | |
| 14 | input[i] = i; | |
| 15 | } | |
| 16 | return 0; | |
| 17 | } |
Note:
See TracBrowser
for help on using the repository browser.
