From 451af5865caca721a1d706dbf14650cb29cedd75 Mon Sep 17 00:00:00 2001 From: Dean Lee Date: Thu, 23 Apr 2020 01:16:05 +0800 Subject: [PATCH] unmap a previously mapped buff (#1410) old-commit-hash: 98ec06e125b605405900673be0305677ad5efce3 --- selfdrive/modeld/models/driving.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/selfdrive/modeld/models/driving.cc b/selfdrive/modeld/models/driving.cc index 3cae9657a3..3ae9618e79 100644 --- a/selfdrive/modeld/models/driving.cc +++ b/selfdrive/modeld/models/driving.cc @@ -112,6 +112,8 @@ ModelDataRaw model_eval_frame(ModelState* s, cl_command_queue q, assert(1==2); #endif + clEnqueueUnmapMemObject(q, s->frame.net_input, (void*)new_frame_buf, 0, NULL, NULL); + // net outputs ModelDataRaw net_outputs; net_outputs.path = &s->output[PATH_IDX];