Skip to content

Commit b079475

Browse files
adeebshihadehComma Device
and
Comma Device
authored
camerad: set QCOM CL perf hint (commaai#23791)
Co-authored-by: Comma Device <device@comma.ai>
1 parent 604fefa commit b079475

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

selfdrive/camerad/cameras/camera_common.cc

+2-1
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,8 @@ void common_process_driver_camera(MultiCameraState *s, CameraState *c, int cnt)
450450
void camerad_thread() {
451451
cl_device_id device_id = cl_get_device_id(CL_DEVICE_TYPE_DEFAULT);
452452
#if defined(QCOM) || defined(QCOM2)
453-
const cl_context_properties props[] = {CL_CONTEXT_PRIORITY_HINT_QCOM, CL_PRIORITY_HINT_HIGH_QCOM, 0};
453+
const cl_context_properties props[] = {CL_CONTEXT_PRIORITY_HINT_QCOM, CL_PRIORITY_HINT_HIGH_QCOM,
454+
CL_CONTEXT_PERF_HINT_QCOM, CL_PERF_HINT_HIGH_QCOM, 0};
454455
cl_context context = CL_CHECK_ERR(clCreateContext(props, 1, &device_id, NULL, NULL, &err));
455456
#else
456457
cl_context context = CL_CHECK_ERR(clCreateContext(NULL, 1, &device_id, NULL, NULL, &err));

0 commit comments

Comments
 (0)