diff options
author | Junyan He <junyan.he@intel.com> | 2016-11-10 14:45:25 +0800 |
---|---|---|
committer | Yang Rong <rong.r.yang@intel.com> | 2016-12-16 20:36:35 +0800 |
commit | a8ecb5f9642152eae8751c9c34b17427b7fe31c6 (patch) | |
tree | 5fdc1303777996fb5712f8b70b78a47c40b555e1 /src/cl_command_queue.h | |
parent | 5f31620f624a3abcfbc240ea4f7a0f8db0f36cfa (diff) |
Add multi devices support in context.
In future there may be more than one device on the platform,
we need to consider multi devices within one context.
Signed-off-by: Junyan He <junyan.he@intel.com>
Reviewed-by: Yang Rong <rong.r.yang@intel.com>
Diffstat (limited to 'src/cl_command_queue.h')
-rw-r--r-- | src/cl_command_queue.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cl_command_queue.h b/src/cl_command_queue.h index 9eb1b09e..c9e0d649 100644 --- a/src/cl_command_queue.h +++ b/src/cl_command_queue.h @@ -44,6 +44,7 @@ struct _cl_command_queue { _cl_base_object base; _cl_command_queue_enqueue_worker worker; cl_context ctx; /* Its parent context */ + cl_device_id device; /* Its device */ cl_event* barrier_events; /* Point to array of non-complete user events that block this command queue */ cl_int barrier_events_num; /* Number of Non-complete user events */ cl_int barrier_events_size; /* The size of array that wait_events point to */ |