Skip to content

Refactor/device properties #324

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 22, 2021
Merged
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
24 changes: 0 additions & 24 deletions dpctl/_sycl_device.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
""" This file declares the SyclDevice extension type.
"""

from libcpp cimport bool
from libc.stdint cimport uint32_t
from ._backend cimport (
DPCTLSyclDeviceRef,
DPCTLSyclDeviceSelectorRef,
Expand All @@ -32,18 +30,10 @@ cdef class _SyclDevice:
''' Wrapper class for a Sycl Device
'''
cdef DPCTLSyclDeviceRef _device_ref
cdef bool _accelerator_device
cdef bool _cpu_device
cdef bool _gpu_device
cdef bool _host_device
cdef const char *_vendor_name
cdef const char *_device_name
cdef const char *_driver_version
cdef uint32_t _max_compute_units
cdef uint32_t _max_work_item_dims
cdef size_t *_max_work_item_sizes
cdef size_t _max_work_group_size
cdef uint32_t _max_num_sub_groups


cdef class SyclDevice(_SyclDevice):
Expand All @@ -54,17 +44,3 @@ cdef class SyclDevice(_SyclDevice):
cdef int _init_from__SyclDevice(self, _SyclDevice other)
cdef int _init_from_selector(self, DPCTLSyclDeviceSelectorRef DSRef)
cdef DPCTLSyclDeviceRef get_device_ref(self)
cpdef get_backend(self)
cpdef get_device_name(self)
cpdef get_device_type(self)
cpdef get_vendor_name(self)
cpdef get_driver_version(self)
cpdef get_max_compute_units(self)
cpdef get_max_work_item_dims(self)
cpdef get_max_work_item_sizes(self)
cpdef get_max_work_group_size(self)
cpdef get_max_num_sub_groups(self)
cpdef is_accelerator(self)
cpdef is_cpu(self)
cpdef is_gpu(self)
cpdef is_host(self)
Loading