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

Function CL_API_CALL CreateImage3D

opencl/tools/cltrace/cltrace.cpp:1370–1396  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1368
1369
1370static cl_mem CL_API_CALL CreateImage3D(cl_context context, cl_mem_flags flags,
1371 const cl_image_format* image_format, size_t image_width,
1372 size_t image_height, size_t image_depth,
1373 size_t image_row_pitch, size_t image_slice_pitch,
1374 void* host_ptr, cl_int* errcode_ret) {
1375 std::ostringstream ss;
1376 Rec r(&ss);
1377
1378 ss << "clCreateImage3D(" << context << ',';
1379 ss << getMemFlagsString(flags) << ',';
1380 ss << getImageFormatsString(image_format, 1) << ',';
1381 ss << image_width << ',' << image_height << ',' << image_depth << ',';
1382 ss << image_row_pitch << ',' << image_slice_pitch << ',';
1383 ss << host_ptr << ',';
1384
1385 addRec(&r);
1386 cl_mem ret = original_dispatch.CreateImage3D(context, flags, image_format, image_width,
1387 image_height, image_depth, image_row_pitch,
1388 image_slice_pitch, host_ptr, errcode_ret);
1389 delRec(&r);
1390
1391 ss << getErrorString(errcode_ret) << ") = " << ret;
1392
1393 ss << std::endl;
1394 std::cerr << ss.str();
1395 return ret;
1396}
1397
1398
1399static cl_int CL_API_CALL RetainMemObject(cl_mem memobj) {

Callers

nothing calls this directly

Calls 5

getMemFlagsStringFunction · 0.85
getImageFormatsStringFunction · 0.85
addRecFunction · 0.85
delRecFunction · 0.85
getErrorStringFunction · 0.85

Tested by

no test coverage detected