Skip to content

Commit 53d1838

Browse files
committed
Add SyclDeviceCreationError to the dpnp.exceptions module and documentation page
1 parent 6dc9e7f commit 53d1838

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

doc/reference/exceptions.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,5 @@ Exceptions
3535
Traceback (most recent call last):
3636
...
3737
DLPackCreationError: to_dlpack_capsule: DLPack can only export arrays based on USM allocations bound to a default platform SYCL context
38+
39+
.. autodata:: SyclDeviceCreationError

dpnp/exceptions/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
from dpctl import SyclDeviceCreationError
12
from dpctl.tensor._dlpack import DLPackCreationError
23
from numpy.exceptions import AxisError
34

45
__all__ = [
56
"AxisError",
67
"DLPackCreationError",
8+
"SyclDeviceCreationError",
79
]

0 commit comments

Comments
 (0)