Aligned GPU Array
At the moment only aligned CPU arrays exist. For GPU arrays it should also be possible to pass the alignment and create an array of which. Possible implementation:
base_array = gpuarray.GPUArray((array.size + 8), dtype=array.dtype)
gpu_array = gpuarray.GPUArray(
shape=tuple(array.shape),
dtype=array.dtype,
base=base_array,
gpudata=int(base_array.gpudata) + 24,
strides=tuple(gpuarray._compact_strides(array)),)