Class pocl_content_size


  • public class pocl_content_size
    extends java.lang.Object
    Native bindings to the pocl_content_size extension.

    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.

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int clSetContentSizeBufferPoCL​(long buffer, long content_size_buffer)
      Used to indicate that the buffer content_size_buffer will hold the meaningful byte count of the content of buffer buffer.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • clSetContentSizeBufferPoCL

        public static int clSetContentSizeBufferPoCL​(long buffer,
                                                     long content_size_buffer)
        Used to indicate that the buffer content_size_buffer will hold the meaningful byte count of the content of buffer buffer.

        The user is responsible for maintaining the correct meaningful byte count (the implementation does not update the content_size_buffer).

        Parameters:
        buffer - a valid cl_mem object of MEM_OBJECT_BUFFER type.
        content_size_buffer - a valid 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.