summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2012-03-13 11:22:09 -0400
committerTom Stellard <thomas.stellard@amd.com>2012-03-13 11:22:09 -0400
commitd2b31e6b570e2cc3b4fd0237037d93129e9422bc (patch)
tree614b16da6e2bf1f51c203796f2b87b35867a40e4 /util.h
parentd290aedf15294fc815746fe9c2931fe153c708b1 (diff)
Add struct clu_context
Diffstat (limited to 'util.h')
-rw-r--r--util.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/util.h b/util.h
index 7589655..9ecad93 100644
--- a/util.h
+++ b/util.h
@@ -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);