1.23
2.0
acw/focus-triggers
main
test-branch
| Line | |
|---|
| 1 | #include "cl.cvl"
|
|---|
| 2 | #include <stdio.h>
|
|---|
| 3 | #include <stdlib.h>
|
|---|
| 4 | #include <string.h>
|
|---|
| 5 |
|
|---|
| 6 | /*
|
|---|
| 7 | Defined in cl.cvl: (+ means that it will be used)
|
|---|
| 8 | + cl_device_id
|
|---|
| 9 | cl_context
|
|---|
| 10 | + cl_command_queue
|
|---|
| 11 | cl_program
|
|---|
| 12 | cl_kernel
|
|---|
| 13 | ? cl_mem
|
|---|
| 14 |
|
|---|
| 15 | Methods that will be shared:
|
|---|
| 16 | clGetDeviceIDs
|
|---|
| 17 | clEnqueueNDRangeKernel
|
|---|
| 18 |
|
|---|
| 19 | workfunc goes into main program, but a method
|
|---|
| 20 |
|
|---|
| 21 | Methods that will be replaced with simple parts, see wiki:
|
|---|
| 22 | clCreateBuffer
|
|---|
| 23 | setKernelArgs
|
|---|
| 24 | clGetKernelWorkGroupInfo
|
|---|
| 25 | clEnqueueReadBuffer
|
|---|
| 26 | */
|
|---|
| 27 | int clGetDeviceIDs(int numEntries, cl_device_id devices)
|
|---|
| 28 | {
|
|---|
| 29 |
|
|---|
| 30 |
|
|---|
| 31 | return 1;
|
|---|
| 32 | }
|
|---|
| 33 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.