2 // Copyright (c) 2018 Intel Corporation
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
8 // http://www.apache.org/licenses/LICENSE-2.0
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
17 ///////////////////////////////////////////////////////////////////////////////////////////////////
19 #include "ocl_toolkit.h"
21 namespace cldnn { namespace gpu {
22 class command_queues_builder
25 command_queues_builder(const cl::Context& context, const cl::Device& device, const cl_platform_id& platform_id);
27 void set_throttle_mode(cldnn_throttle_mode_type throttle, bool extension_support);
28 void set_priority_mode(cldnn_priority_mode_type priority, bool extension_support);
29 void set_profiling(bool flag) { _profiling = flag; }
30 void set_out_of_order(bool flag) { _out_of_order = flag; }
31 cl::CommandQueue& queue() { return _queue; }
32 cl::CommandQueue queue() const { return _queue; }
35 cl::CommandQueue _queue;
38 cl_platform_id _platform_id;
41 cldnn_priority_mode_type _priority_mode;
42 cldnn_throttle_mode_type _throttle_mode;
44 cl_command_queue_properties get_properties();