Enable DSP out-of-order execution in TIDL-API
authorYuan Zhao <yuanzhao@ti.com>
Fri, 28 Dec 2018 18:06:29 +0000 (12:06 -0600)
committerYuan Zhao <yuanzhao@ti.com>
Fri, 28 Dec 2018 18:06:29 +0000 (12:06 -0600)
- MCT-1108

tidl_api/src/ocl_device.cpp

index 4778fb28f03ac8eb7184092ab003c255e742658f..3bad85b238d1be6cfe7416e84b04ba7483327613 100644 (file)
@@ -91,7 +91,8 @@ DspDevice::DspDevice(const DeviceIds& ids, const std::string &binary_filename):
         // Queue 0 on device 0
         queue_m[0] = clCreateCommandQueue(context_m,
                                           device_ids[0],
-                                          CL_QUEUE_PROFILING_ENABLE,
+                                          CL_QUEUE_PROFILING_ENABLE|
+                                         CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE,
                                           &errcode);
         errorCheck(errcode, __LINE__);
         BuildProgramFromBinary(binary_filename, device_ids, 1);
@@ -139,7 +140,8 @@ DspDevice::DspDevice(const DeviceIds& ids, const std::string &binary_filename):
             int index = static_cast<int>(id);
             queue_m[index] = clCreateCommandQueue(context_m,
                                           sub_devices[index],
-                                          CL_QUEUE_PROFILING_ENABLE,
+                                          CL_QUEUE_PROFILING_ENABLE|
+                                         CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE,
                                           &errcode);
             errorCheck(errcode, __LINE__);
         }