source: CIVL/examples/translation/openclversion2.1/openCLshared.cvl@ 863d90b

1.23 2.0 acw/focus-triggers main test-branch
Last change on this file since 863d90b was 863d90b, checked in by Jacob Trieu <fuufusuu@…>, 12 years ago

2.1 incoming

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@1200 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
File size: 558 bytes
Line 
1#include cl.cvl
2/*
3Defined in cl.cvl: (+ means that it will be used)
4+ cl_device_id
5 cl_context
6+ cl_command_queue
7 cl_program
8 cl_kernel
9? cl_mem
10
11Methods that will be shared:
12 clGetDeviceIDs
13 clEnqueueNDRangeKernel
14
15workfunc goes into main program, but a method
16
17Methods that will be replaced with simple parts, see wiki:
18 clCreateBuffer
19 setKernelArgs
20 clGetKernelWorkGroupInfo
21 clEnqueueReadBuffer
22 */
23int clGetDeviceIDs(int numEntries, cl_device_id device_id)
24{
25 device_id.id = malloc(sizeof(int) * numEntries);
26
27 return CL_SUCCESS;
28}
29
30
Note: See TracBrowser for help on using the repository browser.