Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions dpctl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,24 @@

from . import _init_helper
from ._device_selection import select_device_with_aspects
from ._dtypes import (
DpctlScalar,
bool,
complex64,
complex128,
dtype,
float16,
float32,
float64,
int8,
int16,
int32,
int64,
uint8,
uint16,
uint32,
uint64,
)
from ._sycl_context import SyclContext, SyclContextCreationError
from ._sycl_device import (
SyclDevice,
Expand Down Expand Up @@ -122,6 +140,24 @@
__all__ += [
"get_include",
]
__all__ += [
"dtype",
"DpctlScalar",
"bool",
"int8",
"uint8",
"int16",
"uint16",
"int32",
"uint32",
"int64",
"uint64",
"float16",
"float32",
"float64",
"complex64",
"complex128",
]
# add submodules
__all__ += [
"memory",
Expand Down
3 changes: 3 additions & 0 deletions dpctl/_backend.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ cdef extern from "syclinterface/dpctl_sycl_enum_types.h":
_LOCAL_ACCESSOR "DPCTL_LOCAL_ACCESSOR",
_WORK_GROUP_MEMORY "DPCTL_WORK_GROUP_MEMORY"
_RAW_KERNEL_ARG "DPCTL_RAW_KERNEL_ARG"
_FLOAT16 "DPCTL_FLOAT16_T"
_COMPLEX64 "DPCTL_COMPLEX64_T"
_COMPLEX128 "DPCTL_COMPLEX128_T"

ctypedef enum _queue_property_type "DPCTLQueuePropertyType":
_DEFAULT_PROPERTY "DPCTL_DEFAULT_PROPERTY"
Expand Down
Loading
Loading