source:
CIVL/mods/dev.civl.com/examples/opencl/2.14/openSimp.cvl@
cb4d4f4
| Last change on this file since cb4d4f4 was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 206 bytes | |
| Line | |
|---|---|
| 1 | int func() |
| 2 | { |
| 3 | return 4; |
| 4 | } |
| 5 | |
| 6 | int main(int argc, char** argv) |
| 7 | { |
| 8 | int global = func(); |
| 9 | //int input[global]; |
| 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.
