diff options
author | Yuan Zhao | 2018-12-28 12:06:29 -0600 |
---|---|---|
committer | Yuan Zhao | 2018-12-28 12:06:29 -0600 |
commit | 2efe46c5bb7f67cd267a7c248e70b394b5645960 (patch) | |
tree | 5ab14f6811da490b80ef6f80d71a17a2bacd6e6d | |
parent | 12c78ae2d97e56669b38bfc38bff23c358c63ec2 (diff) | |
download | tidl-api-2efe46c5bb7f67cd267a7c248e70b394b5645960.tar.gz tidl-api-2efe46c5bb7f67cd267a7c248e70b394b5645960.tar.xz tidl-api-2efe46c5bb7f67cd267a7c248e70b394b5645960.zip |
Enable DSP out-of-order execution in TIDL-API
- MCT-1108
-rw-r--r-- | tidl_api/src/ocl_device.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tidl_api/src/ocl_device.cpp b/tidl_api/src/ocl_device.cpp index 4778fb2..3bad85b 100644 --- a/tidl_api/src/ocl_device.cpp +++ b/tidl_api/src/ocl_device.cpp | |||
@@ -91,7 +91,8 @@ DspDevice::DspDevice(const DeviceIds& ids, const std::string &binary_filename): | |||
91 | // Queue 0 on device 0 | 91 | // Queue 0 on device 0 |
92 | queue_m[0] = clCreateCommandQueue(context_m, | 92 | queue_m[0] = clCreateCommandQueue(context_m, |
93 | device_ids[0], | 93 | device_ids[0], |
94 | CL_QUEUE_PROFILING_ENABLE, | 94 | CL_QUEUE_PROFILING_ENABLE| |
95 | CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE, | ||
95 | &errcode); | 96 | &errcode); |
96 | errorCheck(errcode, __LINE__); | 97 | errorCheck(errcode, __LINE__); |
97 | BuildProgramFromBinary(binary_filename, device_ids, 1); | 98 | BuildProgramFromBinary(binary_filename, device_ids, 1); |
@@ -139,7 +140,8 @@ DspDevice::DspDevice(const DeviceIds& ids, const std::string &binary_filename): | |||
139 | int index = static_cast<int>(id); | 140 | int index = static_cast<int>(id); |
140 | queue_m[index] = clCreateCommandQueue(context_m, | 141 | queue_m[index] = clCreateCommandQueue(context_m, |
141 | sub_devices[index], | 142 | sub_devices[index], |
142 | CL_QUEUE_PROFILING_ENABLE, | 143 | CL_QUEUE_PROFILING_ENABLE| |
144 | CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE, | ||
143 | &errcode); | 145 | &errcode); |
144 | errorCheck(errcode, __LINE__); | 146 | errorCheck(errcode, __LINE__); |
145 | } | 147 | } |