35 lines
1.0 KiB
Diff
35 lines
1.0 KiB
Diff
From 5b388814ca0f51ccc78c3aef41f824e139f06df4 Mon Sep 17 00:00:00 2001
|
|
From: greatpanc <changpan_yin@163.com>
|
|
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<typename T, class D>
|
|
inline cl_int enqueueMapSVM(
|
|
- cl::pointer<T, D> ptr,
|
|
+ cl::pointer<T, D> &ptr,
|
|
cl_bool blocking,
|
|
cl_map_flags flags,
|
|
size_type size,
|
|
@@ -9244,7 +9244,7 @@ inline cl_int enqueueMapSVM(
|
|
*/
|
|
template<typename T, class Alloc>
|
|
inline cl_int enqueueMapSVM(
|
|
- cl::vector<T, Alloc> container,
|
|
+ cl::vector<T, Alloc> &container,
|
|
cl_bool blocking,
|
|
cl_map_flags flags,
|
|
const vector<Event>* events = NULL,
|
|
--
|
|
2.25.1
|
|
|