MCPcopy Create free account
hub / github.com/ROCm/clr / CL_API_CALL EnqueueMapBuffer

Function CL_API_CALL EnqueueMapBuffer

opencl/tools/cltrace/cltrace.cpp:2423–2449  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2421}
2422
2423static void* CL_API_CALL EnqueueMapBuffer(cl_command_queue command_queue, cl_mem buffer,
2424 cl_bool blocking_map, cl_map_flags map_flags,
2425 size_t offset, size_t cb, cl_uint num_events_in_wait_list,
2426 const cl_event* event_wait_list, cl_event* event,
2427 cl_int* errcode_ret) {
2428 std::ostringstream ss;
2429 Rec r(&ss);
2430
2431 ss << "clEnqueueMapBuffer(" << command_queue << ',';
2432 ss << buffer << ',' << getBoolString(blocking_map) << ',';
2433 ss << getMapFlagsString(map_flags) << ',';
2434 ss << offset << ',' << cb << ',';
2435 ss << num_events_in_wait_list << ',';
2436 ss << getHandlesString(event_wait_list, num_events_in_wait_list) << ',';
2437
2438 addRec(&r);
2439 void* ret = original_dispatch.EnqueueMapBuffer(command_queue, buffer, blocking_map, map_flags,
2440 offset, cb, num_events_in_wait_list,
2441 event_wait_list, event, errcode_ret);
2442 delRec(&r);
2443
2444 ss << getHexString(event) << ',' << getErrorString(errcode_ret);
2445 ss << ") = " << ret;
2446 ss << std::endl;
2447 std::cerr << ss.str();
2448 return ret;
2449}
2450
2451static void* CL_API_CALL EnqueueMapImage(cl_command_queue command_queue, cl_mem image,
2452 cl_bool blocking_map, cl_map_flags map_flags,

Callers

nothing calls this directly

Calls 7

getBoolStringFunction · 0.85
getMapFlagsStringFunction · 0.85
getHandlesStringFunction · 0.85
addRecFunction · 0.85
delRecFunction · 0.85
getHexStringFunction · 0.85
getErrorStringFunction · 0.85

Tested by

no test coverage detected