From 5b388814ca0f51ccc78c3aef41f824e139f06df4 Mon Sep 17 00:00:00 2001 From: greatpanc Date: Tue, 23 Nov 2021 16:01:57 +0800 Subject: [PATCH] Fix cl::enqueueMapSVM for cl::vector and cl::pointer --- include/CL/cl2.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git OpenCL-CLHPP-2.0.12/include/CL/cl2.hpp OpenCL-CLHPP-2.0.12/include/CL/cl2.hpp index ced4b03..d4bb695 100644 --- OpenCL-CLHPP-2.0.12/include/CL/cl2.hpp +++ OpenCL-CLHPP-2.0.12/include/CL/cl2.hpp @@ -9220,7 +9220,7 @@ inline cl_int enqueueMapSVM( */ template inline cl_int enqueueMapSVM( - cl::pointer ptr, + cl::pointer &ptr, cl_bool blocking, cl_map_flags flags, size_type size, @@ -9244,7 +9244,7 @@ inline cl_int enqueueMapSVM( */ template inline cl_int enqueueMapSVM( - cl::vector container, + cl::vector &container, cl_bool blocking, cl_map_flags flags, const vector* events = NULL, -- 2.25.1