| 9291 | */ |
| 9292 | template<typename T> |
| 9293 | inline cl_int enqueueMapSVM( |
| 9294 | T* ptr, |
| 9295 | cl_bool blocking, |
| 9296 | cl_map_flags flags, |
| 9297 | size_type size, |
| 9298 | const vector<Event>* events, |
| 9299 | Event* event) |
| 9300 | { |
| 9301 | cl_int error; |
| 9302 | CommandQueue queue = CommandQueue::getDefault(&error); |
| 9303 | if (error != CL_SUCCESS) { |
| 9304 | return detail::errHandler(error, __ENQUEUE_MAP_BUFFER_ERR); |
| 9305 | } |
| 9306 | |
| 9307 | return queue.enqueueMapSVM( |
| 9308 | ptr, blocking, flags, size, events, event); |
| 9309 | } |
| 9310 | |
| 9311 | /** |
| 9312 | * Enqueues to the default queue a command that will allow the host to |
no test coverage detected