Skip to content

Commit bf8a0d6

Browse files
author
Diptorup Deb
committed
Fix imports
1 parent 5c50ad2 commit bf8a0d6

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

dpctl/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424
"""
2525
__author__ = "Intel Corp."
2626

27-
from .enum_types import *
28-
from .enum_types import __all__ as _enum_types_all__
2927
from dpctl._sycl_context import *
3028
from dpctl._sycl_context import __all__ as _sycl_context__all__
3129
from dpctl._sycl_device import *
@@ -40,8 +38,10 @@
4038
from dpctl._sycl_queue import __all__ as _sycl_queue__all__
4139
from dpctl._sycl_queue_manager import *
4240
from dpctl._sycl_queue_manager import __all__ as _sycl_qm__all__
43-
from ._version import get_versions
4441

42+
from ._version import get_versions
43+
from .enum_types import *
44+
from .enum_types import __all__ as _enum_types_all__
4545

4646
__all__ = (
4747
_sycl_context__all__

dpctl/_sycl_device.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ from ._backend cimport ( # noqa: E211
8181
_partition_affinity_domain_type,
8282
)
8383

84-
from . import backend_type, device_type
84+
from .enum_types import backend_type, device_type
8585

8686
from libc.stdint cimport int64_t, uint32_t
8787
from libc.stdlib cimport free, malloc

dpctl/_sycl_device_factory.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ from ._backend cimport ( # noqa: E211
4747
_device_type,
4848
)
4949

50-
from . import backend_type
51-
from . import device_type as device_type_t
50+
from .enum_types import backend_type
51+
from .enum_types import device_type as device_type_t
5252

5353
__all__ = [
5454
"get_devices",

dpctl/_sycl_platform.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ from ._backend cimport ( # noqa: E211
4646
_backend_type,
4747
)
4848

49-
from . import backend_type
49+
from .enum_types import backend_type
5050

5151
__all__ = [
5252
"get_platforms",

dpctl/_sycl_queue.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ from .memory._memory cimport _Memory
5959

6060
import ctypes
6161

62-
from . import backend_type
62+
from .enum_types import backend_type
6363

6464
from cpython cimport pycapsule
6565
from libc.stdlib cimport free, malloc

dpctl/_sycl_queue_manager.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ from __future__ import print_function
2222
import logging
2323
from contextlib import contextmanager
2424

25-
from . import backend_type, device_type
25+
from .enum_types import backend_type, device_type
2626

2727
from ._backend cimport ( # noqa: E211
2828
DPCTLQueueMgr_GetCurrentQueue,

0 commit comments

Comments
 (0)