Skip to content

Commit 9f97689

Browse files
authored
Merge pull request #175 from lucyleeow/doc_multi_device
DOC Update section on devices, now multi device support added
2 parents 65d3c2c + 8422f51 commit 9f97689

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

docs/index.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,13 @@ issue, but this hasn't necessarily been tested thoroughly.
161161

162162
3. Since NumPy is a CPU-only library, the [device
163163
support](https://data-apis.org/array-api/latest/design_topics/device_support.html)
164-
in array-api-strict is superficial only. `x.device` is always a (private)
165-
`CPU_DEVICE` object, and `device` keywords to creation functions only
166-
accept either this object or `None`. A future version of array-api-strict
167-
[may add support for a CuPy
164+
in array-api-strict is superficial only.
165+
array-api-strict supports three 'devices'; the default `CPU_DEVICE`,
166+
`Device("device1")` and `Device("device2")`. This allows testing of arrays on
167+
different devices, without the need for special hardware.
168+
`x.device` is always a `Device` object, and `device` keywords to creation
169+
functions only accept the above three device objects or `None`. A future version of
170+
array-api-strict [may add support for a CuPy
168171
backend](https://github.com/data-apis/array-api-strict/issues/5) so that
169172
more significant device support can be tested.
170173

0 commit comments

Comments
 (0)