From e58fd6cc46de6df938d9dea28e9084608de0afe8 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Wed, 11 Nov 2015 10:49:00 -0600 Subject: [PATCH] Fix misplaced docs for create_sub_devices --- doc/runtime.rst | 54 +++++++++++++++++-------------------------------- 1 file changed, 18 insertions(+), 36 deletions(-) diff --git a/doc/runtime.rst b/doc/runtime.rst index a829381d..33cb2202 100644 --- a/doc/runtime.rst +++ b/doc/runtime.rst @@ -104,6 +104,24 @@ Platforms, Devices and Contexts .. automethod:: from_int_ptr .. autoattribute:: int_ptr + .. method:: create_sub_devices(properties) + + *properties* is an array of one (or more) of the forms:: + + [ dpp.EQUALLY, 8] + [ dpp.BY_COUNTS, 5, 7, 9, dpp.PARTITION_BY_COUNTS_LIST_END] + [ dpp.BY_NAMES, 5, 7, 9, dpp.PARTITION_BY_NAMES_LIST_END] + [ dpp.BY_AFFINITY_DOMAIN, dad.L1_CACHE] + + where `dpp` represents :class:`device_partition_property` + and `dad` represent :class:`device_affinity_domain`. + + `PROPERTIES_LIST_END_EXT` is added automatically. + + Only available with CL 1.2. + + .. versionadded:: 2011.2 + Two instances of this class may be compared using *=="* and *"!="*. .. class:: Context(devices=None, properties=None, dev_type=None) @@ -149,42 +167,6 @@ Platforms, Devices and Contexts See :class:`context_info` for values of *param*. - .. method:: create_sub_devices(properties) - - *properties* is an array of one (or more) of the forms:: - - [ dpp.EQUALLY, 8] - [ dpp.BY_COUNTS, 5, 7, 9, dpp.PARTITION_BY_COUNTS_LIST_END] - [ dpp.BY_NAMES, 5, 7, 9, dpp.PARTITION_BY_NAMES_LIST_END] - [ dpp.BY_AFFINITY_DOMAIN, dad.L1_CACHE] - - where `dpp` represents :class:`device_partition_property` - and `dad` represent :class:`device_affinity_domain`. - - `PROPERTIES_LIST_END_EXT` is added automatically. - - Only available with CL 1.2. - - .. versionadded:: 2011.2 - - .. method:: create_sub_devices_ext(properties) - - *properties* is an array of one (or more) of the forms:: - - [ dppe.EQUALLY, 8] - [ dppe.BY_COUNTS, 5, 7, 9, dppe.PARTITION_BY_COUNTS_LIST_END] - [ dppe.BY_NAMES, 5, 7, 9, dppe.PARTITION_BY_NAMES_LIST_END] - [ dppe.BY_AFFINITY_DOMAIN, ad.L1_CACHE] - - where `dppe` represents :class:`device_partition_property_ext` - and `ad` represent :class:`affinity_domain_ext`. - - `PROPERTIES_LIST_END_EXT` is added automatically. - - Only available with the `cl_ext_device_fission` extension. - - .. versionadded:: 2011.1 - .. automethod:: from_int_ptr .. autoattribute:: int_ptr -- GitLab