source: CIVL/examples/translation/opencl/ToDo@ dcdf9aa

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

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

  • Property mode set to 100644
File size: 1.4 KB
RevLine 
[e01b89d]1use demoCL to get hardware info (driver version openCL 1.1)
2
3square.c
4
5
6Types:
7size_t
8cl_device_id
9cl_context
10cl_command_queue
11cl_program
12cl_kernel
13
14cl_mem
15Types for now are just structs, see cl.h
16------Above this line are implemented-------
17Hardware methods:
18
19methods are externs
20 Declared but not defined unless given one
21
22clGetDeviceIDs
23 uses int err, takes 5 parameters
24 http://www.khronos.org/registry/cl/sdk/1.0/docs/man/xhtml/clGetDeviceIDs.html
25 -in progress-
26
27 cl_int clGetPlatformIDs( cl_uint num_entries,
28 cl_platform_id *platforms,
29 cl_uint *num_platforms)
30
31clCreateContext
32 uses a cl_context context, takes 6 parameters
33 http://www.khronos.org/registry/cl/sdk/1.0/docs/man/xhtml/clCreateContext.html
34 openCL uses them for commands, memory, program, kernel objects, executing kernels
35
36Kernels and other:
37clCreateCommandQueue
38 uses a cl_command_queue commands, takes 4 parameters
39 uses &device_id and &err
40 http://www.khronos.org/registry/cl/sdk/1.0/docs/man/xhtml/clCreateCommandQueue.html
41
42clCreateProgramWithSource
43 uses cl_program program, takes 5 parameters
44 uses context
45
46clBuildProgram
47
48clGetProgramBuildInfo
49
50clCreateKernel
51
52clCreateBuffer
53
54clEnqueueWriteBuffer
55
56clSetKernelArg
57
58clGetKernelWorkGroupInfo
59
60clEnqueueReadBuffer
61
62clReleaseMemObject
63
64clReleaseProgram
65
66clReleaseKernel
67
68clReleaseCommandQueue
69
70clReleaseContext
71
72ToDo before this ToDo:
73Implement source code from header files and other code
Note: See TracBrowser for help on using the repository browser.