This extension provides a way to to indicate a buffer which will hold the number of meaningful bytes in another buffer, after kernel execution.
The implementation can use this as an optimization hint, to internally optimize buffer transfers in scenarios with kernels producing dynamic data sizes, by not transferring the bytes that were not written to.
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static int | clSetContentSizeBufferPoCL(long
a valid buffer, long cl_mem object of MEM_OBJECT_BUFFER type.a valid content_size_buffer)cl_mem object of MEM_OBJECT_BUFFER type. content_size_buffer must be at least 64bits large. The meaningful byte count is
stored as 64bit unsigned integer, little endian.Used to indicate that the buffer |
| pocl_content_size | back to summary |
|---|---|
| protected pocl_content_size() | |
| clSetContentSizeBufferPoCL | back to summary |
|---|---|
| public static int clSetContentSizeBufferPoCL(long buffer, long content_size_buffer) Used to indicate that the buffer The user is responsible for maintaining the correct meaningful byte count (the implementation does not update the
| |