diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2012-03-13 11:22:09 -0400 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2012-03-13 11:22:09 -0400 |
commit | d2b31e6b570e2cc3b4fd0237037d93129e9422bc (patch) | |
tree | 614b16da6e2bf1f51c203796f2b87b35867a40e4 /util.h | |
parent | d290aedf15294fc815746fe9c2931fe153c708b1 (diff) |
Add struct clu_context
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -1,4 +1,11 @@ +struct clu_context { + cl_device_id device_id; + cl_context cl_ctx; + cl_command_queue command_queue; + cl_kernel kernel; +}; + const char * cluErrorString(cl_int error); unsigned cluInitGpuDevice(cl_device_id * device_id); unsigned cluCreateContext(cl_context * context, cl_device_id device_id); |