ulong get_global_memory_size(handle memory)
This function returns the size of the global memory block.
handle memory
The handle of the global memory object whose size is being determined.
ulong
The size (in bytes) of the global memory block or zero if an error occurred.
The actual size of a memory block may be greater than its requested allocation size.
The function get_global_memory_flags may be used to determine whether a memory block has been discarded.