Package org.jocl

Class Sizeof


  • public final class Sizeof
    extends java.lang.Object
    Size constants for scalar and vector data types.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int cl_char
      Size of a cl_char, in bytes.
      static int cl_char16
      Size of a cl_char16, in bytes
      static int cl_char2
      Size of a cl_char2, in bytes
      static int cl_char3
      Size of a cl_char3, in bytes.

      This is the same as the size of a cl_char4, according to the OpenCL specification, version 1.1, section 6.1.5
      static int cl_char4
      Size of a cl_char4, in bytes
      static int cl_char8
      Size of a cl_char8, in bytes
      static int cl_command_queue
      Size of a cl_command_queue, in bytes
      static int cl_context
      Size of a cl_context, in bytes
      static int cl_device_id
      Size of a cl_device_id, in bytes
      static int cl_double
      Size of a cl_double, in bytes.
      static int cl_double16
      Size of a cl_double16, in bytes
      static int cl_double2
      Size of a cl_double2, in bytes
      static int cl_double3
      Size of a cl_double3, in bytes.

      This is the same as the size of a cl_double4, according to the OpenCL specification, version 1.1, section 6.1.5
      static int cl_double4
      Size of a cl_double4, in bytes
      static int cl_double8
      Size of a cl_double8, in bytes
      static int cl_event
      Size of a cl_event, in bytes
      static int cl_float
      Size of a cl_float, in bytes.
      static int cl_float16
      Size of a cl_float16, in bytes
      static int cl_float2
      Size of a cl_float2, in bytes
      static int cl_float3
      Size of a cl_float3, in bytes.

      This is the same as the size of a cl_float4, according to the OpenCL specification, version 1.1, section 6.1.5
      static int cl_float4
      Size of a cl_float4, in bytes
      static int cl_float8
      Size of a cl_float8, in bytes
      static int cl_half
      Size of a cl_half, in bytes.
      static int cl_int
      Size of a cl_int, in bytes.
      static int cl_int16
      Size of a cl_int16, in bytes
      static int cl_int2
      Size of a cl_int2, in bytes
      static int cl_int3
      Size of a cl_int3, in bytes.

      This is the same as the size of a cl_int4, according to the OpenCL specification, version 1.1, section 6.1.5
      static int cl_int4
      Size of a cl_int4, in bytes
      static int cl_int8
      Size of a cl_int8, in bytes
      static int cl_kernel
      Size of a cl_kernel, in bytes
      static int cl_long
      Size of a cl_long, in bytes.
      static int cl_long16
      Size of a cl_long16, in bytes
      static int cl_long2
      Size of a cl_long2, in bytes
      static int cl_long3
      Size of a cl_long3, in bytes.

      This is the same as the size of a cl_long4, according to the OpenCL specification, version 1.1, section 6.1.5
      static int cl_long4
      Size of a cl_long4, in bytes
      static int cl_long8
      Size of a cl_long8, in bytes
      static int cl_mem
      Size of a cl_mem, in bytes
      static int cl_platform_id
      Size of a cl_platform_id, in bytes
      static int cl_program
      Size of a cl_program, in bytes
      static int cl_sampler
      Size of a cl_sampler, in bytes
      static int cl_short
      Size of a cl_short, in bytes.
      static int cl_short16
      Size of a cl_short16, in bytes
      static int cl_short2
      Size of a cl_short2, in bytes
      static int cl_short3
      Size of a cl_short3, in bytes.

      This is the same as the size of a cl_short4, according to the OpenCL specification, version 1.1, section 6.1.5
      static int cl_short4
      Size of a cl_short4, in bytes
      static int cl_short8
      Size of a cl_short8, in bytes
      static int cl_uchar
      Size of a cl_uchar, in bytes.
      static int cl_uchar16
      Size of a cl_uchar16, in bytes
      static int cl_uchar2
      Size of a cl_uchar2, in bytes
      static int cl_uchar3
      Size of a cl_uchar3, in bytes.

      This is the same as the size of a cl_uchar4, according to the OpenCL specification, version 1.1, section 6.1.5
      static int cl_uchar4
      Size of a cl_uchar4, in bytes
      static int cl_uchar8
      Size of a cl_uchar8, in bytes
      static int cl_uint
      Size of a cl_uint, in bytes.
      static int cl_uint16
      Size of a cl_uint16, in bytes
      static int cl_uint2
      Size of a cl_uint2, in bytes
      static int cl_uint3
      Size of a cl_uint3, in bytes.

      This is the same as the size of a cl_uint4, according to the OpenCL specification, version 1.1, section 6.1.5
      static int cl_uint4
      Size of a cl_uint4, in bytes
      static int cl_uint8
      Size of a cl_uint8, in bytes
      static int cl_ulong
      Size of a cl_ulong, in bytes.
      static int cl_ulong16
      Size of a cl_ulong16, in bytes
      static int cl_ulong2
      Size of a cl_ulong2, in bytes
      static int cl_ulong3
      Size of a cl_ulong3, in bytes.

      This is the same as the size of a cl_ulong4, according to the OpenCL specification, version 1.1, section 6.1.5
      static int cl_ulong4
      Size of a cl_ulong4, in bytes
      static int cl_ulong8
      Size of a cl_ulong8, in bytes
      static int cl_ushort
      Size of a cl_ushort, in bytes.
      static int cl_ushort16
      Size of a cl_ushort16, in bytes
      static int cl_ushort2
      Size of a cl_ushort2, in bytes
      static int cl_ushort3
      Size of a cl_ushort3, in bytes.

      This is the same as the size of a cl_ushort4, according to the OpenCL specification, version 1.1, section 6.1.5
      static int cl_ushort4
      Size of a cl_ushort4, in bytes
      static int cl_ushort8
      Size of a cl_ushort8, in bytes
      private static java.util.logging.Logger logger
      The logger used in this class
      static int POINTER
      Size of a native pointer, in bytes
      static int size_t
      Size of a size_t, in bytes
    • Constructor Summary

      Constructors 
      Constructor Description
      Sizeof()  
    • Field Detail

      • logger

        private static final java.util.logging.Logger logger
        The logger used in this class
      • cl_uchar

        public static final int cl_uchar
        Size of a cl_uchar, in bytes.
        See Also:
        Constant Field Values
      • cl_short

        public static final int cl_short
        Size of a cl_short, in bytes.
        See Also:
        Constant Field Values
      • cl_ushort

        public static final int cl_ushort
        Size of a cl_ushort, in bytes.
        See Also:
        Constant Field Values
      • cl_ulong

        public static final int cl_ulong
        Size of a cl_ulong, in bytes.
        See Also:
        Constant Field Values
      • cl_float

        public static final int cl_float
        Size of a cl_float, in bytes.
        See Also:
        Constant Field Values
      • cl_double

        public static final int cl_double
        Size of a cl_double, in bytes.
        See Also:
        Constant Field Values
      • cl_char2

        public static final int cl_char2
        Size of a cl_char2, in bytes
        See Also:
        Constant Field Values
      • cl_char4

        public static final int cl_char4
        Size of a cl_char4, in bytes
        See Also:
        Constant Field Values
      • cl_char8

        public static final int cl_char8
        Size of a cl_char8, in bytes
        See Also:
        Constant Field Values
      • cl_char16

        public static final int cl_char16
        Size of a cl_char16, in bytes
        See Also:
        Constant Field Values
      • cl_char3

        public static final int cl_char3
        Size of a cl_char3, in bytes.

        This is the same as the size of a cl_char4, according to the OpenCL specification, version 1.1, section 6.1.5
        See Also:
        Constant Field Values
      • cl_uchar2

        public static final int cl_uchar2
        Size of a cl_uchar2, in bytes
        See Also:
        Constant Field Values
      • cl_uchar4

        public static final int cl_uchar4
        Size of a cl_uchar4, in bytes
        See Also:
        Constant Field Values
      • cl_uchar8

        public static final int cl_uchar8
        Size of a cl_uchar8, in bytes
        See Also:
        Constant Field Values
      • cl_uchar16

        public static final int cl_uchar16
        Size of a cl_uchar16, in bytes
        See Also:
        Constant Field Values
      • cl_uchar3

        public static final int cl_uchar3
        Size of a cl_uchar3, in bytes.

        This is the same as the size of a cl_uchar4, according to the OpenCL specification, version 1.1, section 6.1.5
        See Also:
        Constant Field Values
      • cl_short2

        public static final int cl_short2
        Size of a cl_short2, in bytes
        See Also:
        Constant Field Values
      • cl_short4

        public static final int cl_short4
        Size of a cl_short4, in bytes
        See Also:
        Constant Field Values
      • cl_short8

        public static final int cl_short8
        Size of a cl_short8, in bytes
        See Also:
        Constant Field Values
      • cl_short16

        public static final int cl_short16
        Size of a cl_short16, in bytes
        See Also:
        Constant Field Values
      • cl_short3

        public static final int cl_short3
        Size of a cl_short3, in bytes.

        This is the same as the size of a cl_short4, according to the OpenCL specification, version 1.1, section 6.1.5
        See Also:
        Constant Field Values
      • cl_ushort2

        public static final int cl_ushort2
        Size of a cl_ushort2, in bytes
        See Also:
        Constant Field Values
      • cl_ushort4

        public static final int cl_ushort4
        Size of a cl_ushort4, in bytes
        See Also:
        Constant Field Values
      • cl_ushort8

        public static final int cl_ushort8
        Size of a cl_ushort8, in bytes
        See Also:
        Constant Field Values
      • cl_ushort16

        public static final int cl_ushort16
        Size of a cl_ushort16, in bytes
        See Also:
        Constant Field Values
      • cl_ushort3

        public static final int cl_ushort3
        Size of a cl_ushort3, in bytes.

        This is the same as the size of a cl_ushort4, according to the OpenCL specification, version 1.1, section 6.1.5
        See Also:
        Constant Field Values
      • cl_int16

        public static final int cl_int16
        Size of a cl_int16, in bytes
        See Also:
        Constant Field Values
      • cl_int3

        public static final int cl_int3
        Size of a cl_int3, in bytes.

        This is the same as the size of a cl_int4, according to the OpenCL specification, version 1.1, section 6.1.5
        See Also:
        Constant Field Values
      • cl_uint2

        public static final int cl_uint2
        Size of a cl_uint2, in bytes
        See Also:
        Constant Field Values
      • cl_uint4

        public static final int cl_uint4
        Size of a cl_uint4, in bytes
        See Also:
        Constant Field Values
      • cl_uint8

        public static final int cl_uint8
        Size of a cl_uint8, in bytes
        See Also:
        Constant Field Values
      • cl_uint16

        public static final int cl_uint16
        Size of a cl_uint16, in bytes
        See Also:
        Constant Field Values
      • cl_uint3

        public static final int cl_uint3
        Size of a cl_uint3, in bytes.

        This is the same as the size of a cl_uint4, according to the OpenCL specification, version 1.1, section 6.1.5
        See Also:
        Constant Field Values
      • cl_long2

        public static final int cl_long2
        Size of a cl_long2, in bytes
        See Also:
        Constant Field Values
      • cl_long4

        public static final int cl_long4
        Size of a cl_long4, in bytes
        See Also:
        Constant Field Values
      • cl_long8

        public static final int cl_long8
        Size of a cl_long8, in bytes
        See Also:
        Constant Field Values
      • cl_long16

        public static final int cl_long16
        Size of a cl_long16, in bytes
        See Also:
        Constant Field Values
      • cl_long3

        public static final int cl_long3
        Size of a cl_long3, in bytes.

        This is the same as the size of a cl_long4, according to the OpenCL specification, version 1.1, section 6.1.5
        See Also:
        Constant Field Values
      • cl_ulong2

        public static final int cl_ulong2
        Size of a cl_ulong2, in bytes
        See Also:
        Constant Field Values
      • cl_ulong4

        public static final int cl_ulong4
        Size of a cl_ulong4, in bytes
        See Also:
        Constant Field Values
      • cl_ulong8

        public static final int cl_ulong8
        Size of a cl_ulong8, in bytes
        See Also:
        Constant Field Values
      • cl_ulong16

        public static final int cl_ulong16
        Size of a cl_ulong16, in bytes
        See Also:
        Constant Field Values
      • cl_ulong3

        public static final int cl_ulong3
        Size of a cl_ulong3, in bytes.

        This is the same as the size of a cl_ulong4, according to the OpenCL specification, version 1.1, section 6.1.5
        See Also:
        Constant Field Values
      • cl_float2

        public static final int cl_float2
        Size of a cl_float2, in bytes
        See Also:
        Constant Field Values
      • cl_float4

        public static final int cl_float4
        Size of a cl_float4, in bytes
        See Also:
        Constant Field Values
      • cl_float8

        public static final int cl_float8
        Size of a cl_float8, in bytes
        See Also:
        Constant Field Values
      • cl_float16

        public static final int cl_float16
        Size of a cl_float16, in bytes
        See Also:
        Constant Field Values
      • cl_float3

        public static final int cl_float3
        Size of a cl_float3, in bytes.

        This is the same as the size of a cl_float4, according to the OpenCL specification, version 1.1, section 6.1.5
        See Also:
        Constant Field Values
      • cl_double2

        public static final int cl_double2
        Size of a cl_double2, in bytes
        See Also:
        Constant Field Values
      • cl_double4

        public static final int cl_double4
        Size of a cl_double4, in bytes
        See Also:
        Constant Field Values
      • cl_double8

        public static final int cl_double8
        Size of a cl_double8, in bytes
        See Also:
        Constant Field Values
      • cl_double16

        public static final int cl_double16
        Size of a cl_double16, in bytes
        See Also:
        Constant Field Values
      • cl_double3

        public static final int cl_double3
        Size of a cl_double3, in bytes.

        This is the same as the size of a cl_double4, according to the OpenCL specification, version 1.1, section 6.1.5
        See Also:
        Constant Field Values
      • POINTER

        public static final int POINTER
        Size of a native pointer, in bytes
      • size_t

        public static final int size_t
        Size of a size_t, in bytes
      • cl_platform_id

        public static final int cl_platform_id
        Size of a cl_platform_id, in bytes
      • cl_device_id

        public static final int cl_device_id
        Size of a cl_device_id, in bytes
      • cl_context

        public static final int cl_context
        Size of a cl_context, in bytes
      • cl_command_queue

        public static final int cl_command_queue
        Size of a cl_command_queue, in bytes
      • cl_mem

        public static final int cl_mem
        Size of a cl_mem, in bytes
      • cl_program

        public static final int cl_program
        Size of a cl_program, in bytes
      • cl_kernel

        public static final int cl_kernel
        Size of a cl_kernel, in bytes
      • cl_event

        public static final int cl_event
        Size of a cl_event, in bytes
      • cl_sampler

        public static final int cl_sampler
        Size of a cl_sampler, in bytes
    • Constructor Detail

      • Sizeof

        public Sizeof()
    • Method Detail

      • computePointerSize

        private static int computePointerSize()
        Computes the size of a pointer, in bytes
        Returns:
        The size of a pointer, in bytes
      • computePointerSizeNative

        private static int computePointerSizeNative()