| 383 | } |
| 384 | |
| 385 | bool write_to_buffer(cl_command_queue command_queue, cl_mem clmem, const void* d, const size_t m) |
| 386 | { |
| 387 | cl_serializer serializer(this); |
| 388 | |
| 389 | cl_int ret = clEnqueueWriteBuffer(command_queue, clmem, CL_TRUE, 0, m, d, 0, NULL, NULL); |
| 390 | if (ret != CL_SUCCESS) |
| 391 | { |
| 392 | ocl_error_printf("ocl::write_to_buffer: clEnqueueWriteBuffer() failed!\n"); |
| 393 | return false; |
| 394 | } |
| 395 | |
| 396 | return true; |
| 397 | } |
| 398 | |
| 399 | bool read_from_buffer(cl_command_queue command_queue, const cl_mem clmem, void* d, size_t m) |
| 400 | { |
nothing calls this directly
no test coverage detected