From 1ff3de9feb4a1d18825431bc91beb9c006b9616e Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner <inform@tiker.net> Date: Thu, 13 Jul 2017 18:22:02 -0500 Subject: [PATCH] Clarify that the Array.offset is in units of bytes. (Fixes #187 on Github) --- pyopencl/array.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyopencl/array.py b/pyopencl/array.py index 326eea7c..0b31e68d 100644 --- a/pyopencl/array.py +++ b/pyopencl/array.py @@ -246,7 +246,7 @@ class Array(object): backs this :class:`Array`. Unlike :attr:`data`, the base address of *base_data* is allowed to be different from the beginning of the array. The actual beginning is the base address of *base_data* plus - :attr:`offset` in units of :attr:`dtype`. + :attr:`offset` bytes. Unlike :attr:`data`, retrieving :attr:`base_data` always succeeds. -- GitLab